@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.
Files changed (661) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/locales/ar/color.json +22 -0
  4. package/locales/ar/file.json +3 -0
  5. package/locales/ar/models.json +15 -0
  6. package/locales/ar/setting.json +13 -0
  7. package/locales/ar/tool.json +10 -1
  8. package/locales/bg-BG/color.json +22 -0
  9. package/locales/bg-BG/file.json +3 -0
  10. package/locales/bg-BG/models.json +15 -0
  11. package/locales/bg-BG/setting.json +13 -0
  12. package/locales/bg-BG/tool.json +10 -1
  13. package/locales/de-DE/color.json +22 -0
  14. package/locales/de-DE/file.json +3 -0
  15. package/locales/de-DE/models.json +15 -0
  16. package/locales/de-DE/setting.json +13 -0
  17. package/locales/de-DE/tool.json +10 -1
  18. package/locales/en-US/color.json +22 -0
  19. package/locales/en-US/file.json +3 -0
  20. package/locales/en-US/models.json +15 -0
  21. package/locales/en-US/setting.json +13 -0
  22. package/locales/en-US/tool.json +10 -1
  23. package/locales/es-ES/color.json +22 -0
  24. package/locales/es-ES/file.json +3 -0
  25. package/locales/es-ES/models.json +15 -0
  26. package/locales/es-ES/setting.json +13 -0
  27. package/locales/es-ES/tool.json +10 -1
  28. package/locales/fa-IR/color.json +22 -0
  29. package/locales/fa-IR/file.json +3 -0
  30. package/locales/fa-IR/models.json +15 -0
  31. package/locales/fa-IR/setting.json +13 -0
  32. package/locales/fa-IR/tool.json +10 -1
  33. package/locales/fr-FR/color.json +22 -0
  34. package/locales/fr-FR/file.json +3 -0
  35. package/locales/fr-FR/models.json +15 -0
  36. package/locales/fr-FR/setting.json +13 -0
  37. package/locales/fr-FR/tool.json +10 -1
  38. package/locales/it-IT/color.json +22 -0
  39. package/locales/it-IT/file.json +3 -0
  40. package/locales/it-IT/models.json +15 -0
  41. package/locales/it-IT/setting.json +13 -0
  42. package/locales/it-IT/tool.json +10 -1
  43. package/locales/ja-JP/color.json +22 -0
  44. package/locales/ja-JP/file.json +3 -0
  45. package/locales/ja-JP/models.json +15 -0
  46. package/locales/ja-JP/setting.json +13 -0
  47. package/locales/ja-JP/tool.json +10 -1
  48. package/locales/ko-KR/color.json +22 -0
  49. package/locales/ko-KR/file.json +3 -0
  50. package/locales/ko-KR/models.json +15 -0
  51. package/locales/ko-KR/setting.json +13 -0
  52. package/locales/ko-KR/tool.json +10 -1
  53. package/locales/nl-NL/color.json +22 -0
  54. package/locales/nl-NL/file.json +3 -0
  55. package/locales/nl-NL/models.json +15 -0
  56. package/locales/nl-NL/setting.json +13 -0
  57. package/locales/nl-NL/tool.json +10 -1
  58. package/locales/pl-PL/color.json +22 -0
  59. package/locales/pl-PL/file.json +3 -0
  60. package/locales/pl-PL/models.json +15 -0
  61. package/locales/pl-PL/setting.json +13 -0
  62. package/locales/pl-PL/tool.json +10 -1
  63. package/locales/pt-BR/color.json +22 -0
  64. package/locales/pt-BR/file.json +3 -0
  65. package/locales/pt-BR/models.json +15 -0
  66. package/locales/pt-BR/setting.json +13 -0
  67. package/locales/pt-BR/tool.json +10 -1
  68. package/locales/ru-RU/color.json +22 -0
  69. package/locales/ru-RU/file.json +3 -0
  70. package/locales/ru-RU/models.json +15 -0
  71. package/locales/ru-RU/setting.json +13 -0
  72. package/locales/ru-RU/tool.json +10 -1
  73. package/locales/tr-TR/color.json +22 -0
  74. package/locales/tr-TR/file.json +3 -0
  75. package/locales/tr-TR/models.json +15 -0
  76. package/locales/tr-TR/setting.json +13 -0
  77. package/locales/tr-TR/tool.json +10 -1
  78. package/locales/vi-VN/color.json +22 -0
  79. package/locales/vi-VN/file.json +3 -0
  80. package/locales/vi-VN/models.json +15 -0
  81. package/locales/vi-VN/setting.json +13 -0
  82. package/locales/vi-VN/tool.json +10 -1
  83. package/locales/zh-CN/color.json +22 -0
  84. package/locales/zh-CN/common.json +2 -2
  85. package/locales/zh-CN/file.json +3 -0
  86. package/locales/zh-CN/models.json +15 -0
  87. package/locales/zh-CN/setting.json +15 -2
  88. package/locales/zh-TW/color.json +22 -0
  89. package/locales/zh-TW/file.json +3 -0
  90. package/locales/zh-TW/models.json +15 -0
  91. package/locales/zh-TW/setting.json +13 -0
  92. package/locales/zh-TW/tool.json +10 -1
  93. package/package.json +5 -5
  94. package/src/app/[variants]/(auth)/next-auth/signin/AuthSignInBox.tsx +2 -1
  95. package/src/app/[variants]/(main)/(mobile)/me/(home)/features/Header.tsx +2 -2
  96. package/src/app/[variants]/(main)/(mobile)/me/data/features/Header.tsx +3 -3
  97. package/src/app/[variants]/(main)/(mobile)/me/profile/features/Header.tsx +3 -3
  98. package/src/app/[variants]/(main)/(mobile)/me/settings/features/Header.tsx +3 -3
  99. package/src/app/[variants]/(main)/(mobile)/me/settings/features/useCategory.tsx +1 -1
  100. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/BottomActions.tsx +19 -3
  101. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/PinList/index.tsx +33 -17
  102. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/TopActions.tsx +20 -10
  103. package/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx +8 -16
  104. package/src/app/[variants]/(main)/_layout/Mobile/NavBar.tsx +12 -4
  105. package/src/app/[variants]/(main)/changelog/_layout/Desktop/Container.tsx +35 -0
  106. package/src/app/[variants]/(main)/changelog/_layout/Desktop/index.tsx +19 -0
  107. package/src/app/[variants]/(main)/changelog/_layout/Mobile/Header.tsx +3 -3
  108. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/SendMore.tsx +2 -3
  109. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/ShortcutHint.tsx +2 -2
  110. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/index.tsx +4 -3
  111. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/index.tsx +3 -3
  112. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/InputArea/index.tsx +5 -4
  113. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Send.tsx +3 -4
  114. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/AgentsSuggest.tsx +8 -14
  115. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/QuestionSuggest.tsx +6 -10
  116. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/OpeningQuestions.tsx +10 -14
  117. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/WelcomeMessage.tsx +2 -2
  118. package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ZenModeToast/Toast.tsx +4 -3
  119. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/Header.tsx +2 -2
  120. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/SystemRole/SystemRoleContent.tsx +38 -44
  121. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/SystemRole/style.ts +1 -21
  122. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/ByTimeMode/GroupItem.tsx +2 -2
  123. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/Content.tsx +3 -7
  124. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem/TopicContent.tsx +3 -7
  125. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/index.tsx +7 -7
  126. package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicSearchBar/index.tsx +1 -1
  127. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/HeaderAction.tsx +2 -2
  128. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +10 -32
  129. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/KnowledgeTag.tsx +1 -2
  130. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/index.tsx +2 -2
  131. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/index.tsx +3 -11
  132. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/Portal.tsx +11 -17
  133. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/TopicPanel.tsx +3 -4
  134. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/ChatHeaderTitle.tsx +3 -3
  135. package/src/app/[variants]/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/index.tsx +2 -2
  136. package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/index.tsx +39 -61
  137. package/src/app/[variants]/(main)/chat/(workspace)/features/TelemetryNotification.tsx +1 -2
  138. package/src/app/[variants]/(main)/chat/@session/_layout/Desktop/PanelBody.tsx +6 -2
  139. package/src/app/[variants]/(main)/chat/@session/_layout/Desktop/SessionHeader.tsx +26 -13
  140. package/src/app/[variants]/(main)/chat/@session/_layout/Mobile/SessionHeader.tsx +2 -2
  141. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/CollapseGroup/Actions.tsx +3 -3
  142. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/CollapseGroup/index.tsx +1 -1
  143. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Inbox/index.tsx +10 -0
  144. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/AddButton.tsx +14 -5
  145. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/Actions.tsx +3 -3
  146. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/index.tsx +10 -0
  147. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/ListItem/index.tsx +2 -2
  148. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx +1 -5
  149. package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/index.tsx +2 -3
  150. package/src/app/[variants]/(main)/chat/@session/features/SessionSearchBar.tsx +1 -1
  151. package/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsx +14 -1
  152. package/src/app/[variants]/(main)/chat/_layout/Desktop/Workspace.tsx +23 -0
  153. package/src/app/[variants]/(main)/chat/_layout/Desktop/index.tsx +2 -3
  154. package/src/app/[variants]/(main)/chat/features/Migration/ExportConfigButton.tsx +1 -1
  155. package/src/app/[variants]/(main)/chat/features/Migration/Failed.tsx +3 -3
  156. package/src/app/[variants]/(main)/chat/features/Migration/Modal.tsx +2 -2
  157. package/src/app/[variants]/(main)/chat/features/Migration/Start.tsx +1 -1
  158. package/src/app/[variants]/(main)/chat/features/Migration/UpgradeButton.tsx +2 -2
  159. package/src/app/[variants]/(main)/chat/features/TogglePanelButton.tsx +42 -0
  160. package/src/app/[variants]/(main)/chat/settings/_layout/Mobile/Header.tsx +3 -3
  161. package/src/app/[variants]/(main)/chat/settings/features/HeaderContent.tsx +2 -3
  162. package/src/app/[variants]/(main)/chat/settings/features/SubmitAgentButton/SubmitAgentModal.tsx +2 -2
  163. package/src/app/[variants]/(main)/chat/settings/features/SubmitAgentButton/index.tsx +2 -3
  164. package/src/app/[variants]/(main)/chat/settings/page.tsx +13 -20
  165. package/src/app/[variants]/(main)/discover/(detail)/_layout/Mobile/Header.tsx +2 -2
  166. package/src/app/[variants]/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/index.tsx +8 -3
  167. package/src/app/[variants]/(main)/discover/(detail)/assistant/[slug]/features/Header.tsx +2 -5
  168. package/src/app/[variants]/(main)/discover/(detail)/features/Block.tsx +1 -2
  169. package/src/app/[variants]/(main)/discover/(detail)/features/HighlightBlock.tsx +1 -1
  170. package/src/app/[variants]/(main)/discover/(detail)/features/ShareButton.tsx +16 -14
  171. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Actions.tsx +2 -8
  172. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ChatWithModel.tsx +2 -2
  173. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Header.tsx +3 -7
  174. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/InfoSidebar/SuggestionItem.tsx +3 -4
  175. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ParameterList/index.tsx +2 -2
  176. package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ProviderList/ProviderItem.tsx +6 -19
  177. package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/Header.tsx +8 -3
  178. package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/InstallPlugin.tsx +2 -1
  179. package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/ParameterList.tsx +3 -3
  180. package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/Header.tsx +1 -1
  181. package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ModelList/ModelItem.tsx +3 -3
  182. package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ModelList/index.tsx +3 -3
  183. package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ProviderConfig.tsx +4 -4
  184. package/src/app/[variants]/(main)/discover/(list)/(home)/features/AssistantList.tsx +1 -1
  185. package/src/app/[variants]/(main)/discover/(list)/(home)/features/PluginList.tsx +1 -1
  186. package/src/app/[variants]/(main)/discover/(list)/_layout/Desktop/Nav.tsx +44 -68
  187. package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/Header.tsx +3 -3
  188. package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/Nav.tsx +2 -2
  189. package/src/app/[variants]/(main)/discover/(list)/assistants/features/Card.tsx +10 -11
  190. package/src/app/[variants]/(main)/discover/(list)/assistants/features/List.tsx +2 -2
  191. package/src/app/[variants]/(main)/discover/(list)/assistants/features/useCategory.tsx +1 -1
  192. package/src/app/[variants]/(main)/discover/(list)/models/features/Card.tsx +3 -9
  193. package/src/app/[variants]/(main)/discover/(list)/plugins/features/Card.tsx +7 -10
  194. package/src/app/[variants]/(main)/discover/(list)/plugins/features/List.tsx +2 -2
  195. package/src/app/[variants]/(main)/discover/(list)/plugins/features/useCategory.tsx +1 -1
  196. package/src/app/[variants]/(main)/discover/_layout/Desktop/Container.tsx +25 -0
  197. package/src/app/[variants]/(main)/discover/_layout/Desktop/index.tsx +3 -3
  198. package/src/app/[variants]/(main)/discover/components/CategoryContainer.tsx +1 -1
  199. package/src/app/[variants]/(main)/discover/components/CategoryMenu.tsx +1 -1
  200. package/src/app/[variants]/(main)/discover/components/Title.tsx +2 -5
  201. package/src/app/[variants]/(main)/discover/features/CreateButton/Inner.tsx +3 -3
  202. package/src/app/[variants]/(main)/discover/features/CreateButton/index.tsx +3 -3
  203. package/src/app/[variants]/(main)/discover/features/LikeButton.tsx +5 -4
  204. package/src/app/[variants]/(main)/discover/features/StoreSearchBar.tsx +1 -1
  205. package/src/app/[variants]/(main)/discover/features/useNav.tsx +7 -6
  206. package/src/app/[variants]/(main)/discover/search/_layout/Mobile/Header.tsx +3 -3
  207. package/src/app/[variants]/(main)/discover/search/_layout/Mobile/Nav.tsx +3 -3
  208. package/src/app/[variants]/(main)/files/(content)/@menu/features/FileMenu/index.tsx +1 -1
  209. package/src/app/[variants]/(main)/files/(content)/@menu/features/KnowledgeBase/Item/Content.tsx +6 -4
  210. package/src/app/[variants]/(main)/files/(content)/NotSupportClient.tsx +4 -4
  211. package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/Container.tsx +24 -0
  212. package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/RegisterHotkeys.tsx +10 -0
  213. package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/index.tsx +5 -4
  214. package/src/app/[variants]/(main)/files/[id]/Header.tsx +3 -3
  215. package/src/app/[variants]/(main)/files/features/FileDetail.tsx +2 -2
  216. package/src/app/[variants]/(main)/profile/(home)/Client.tsx +32 -11
  217. package/src/app/[variants]/(main)/profile/(home)/features/SSOProvidersList/index.tsx +3 -4
  218. package/src/app/[variants]/(main)/profile/@category/features/CategoryContent.tsx +1 -1
  219. package/src/app/[variants]/(main)/profile/_layout/Desktop/Header.tsx +4 -3
  220. package/src/app/[variants]/(main)/profile/_layout/Desktop/SideBar.tsx +2 -2
  221. package/src/app/[variants]/(main)/profile/_layout/Mobile/Header.tsx +3 -3
  222. package/src/app/[variants]/(main)/profile/features/ClerkProfile.tsx +0 -1
  223. package/src/app/[variants]/(main)/profile/stats/Client.tsx +1 -1
  224. package/src/app/[variants]/(main)/profile/stats/features/AiHeatmaps.tsx +2 -3
  225. package/src/app/[variants]/(main)/profile/stats/features/AssistantsRank.tsx +2 -2
  226. package/src/app/[variants]/(main)/profile/stats/features/ModelsRank.tsx +2 -2
  227. package/src/app/[variants]/(main)/profile/stats/features/ShareButton/ShareModal.tsx +2 -2
  228. package/src/app/[variants]/(main)/profile/stats/features/TopicsRank.tsx +3 -5
  229. package/src/app/[variants]/(main)/repos/[id]/@menu/Menu/index.tsx +1 -1
  230. package/src/app/[variants]/(main)/repos/[id]/evals/components/Tabs.tsx +1 -1
  231. package/src/app/[variants]/(main)/repos/[id]/evals/dataset/CreateDataset/CreateForm.tsx +23 -36
  232. package/src/app/[variants]/(main)/repos/[id]/evals/dataset/CreateDataset/index.tsx +1 -1
  233. package/src/app/[variants]/(main)/repos/[id]/evals/dataset/DatasetDetail/index.tsx +2 -2
  234. package/src/app/[variants]/(main)/repos/[id]/evals/dataset/EmptyGuide/index.tsx +1 -1
  235. package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/CreateForm.tsx +45 -49
  236. package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/index.tsx +1 -1
  237. package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/useModal.tsx +1 -1
  238. package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/EvaluationList/index.tsx +2 -2
  239. package/src/app/[variants]/(main)/settings/@category/features/CategoryContent.tsx +1 -1
  240. package/src/app/[variants]/(main)/settings/@category/features/UpgradeAlert.tsx +1 -2
  241. package/src/app/[variants]/(main)/settings/_layout/Desktop/Header.tsx +4 -3
  242. package/src/app/[variants]/(main)/settings/_layout/Desktop/SideBar.tsx +2 -2
  243. package/src/app/[variants]/(main)/settings/_layout/Desktop/index.tsx +10 -4
  244. package/src/app/[variants]/(main)/settings/_layout/Mobile/Header.tsx +4 -4
  245. package/src/app/[variants]/(main)/settings/about/features/Analytics.tsx +3 -5
  246. package/src/app/[variants]/(main)/settings/about/features/ItemCard.tsx +6 -26
  247. package/src/app/[variants]/(main)/settings/about/features/ItemLink.tsx +1 -5
  248. package/src/app/[variants]/(main)/settings/about/features/Version.tsx +15 -19
  249. package/src/app/[variants]/(main)/settings/about/index.tsx +1 -1
  250. package/src/app/[variants]/(main)/settings/agent/AgentMenu/index.tsx +49 -0
  251. package/src/app/[variants]/(main)/settings/agent/_layout/Desktop.tsx +20 -0
  252. package/src/app/[variants]/(main)/settings/agent/_layout/Mobile.tsx +14 -0
  253. package/src/app/[variants]/(main)/settings/agent/index.tsx +7 -0
  254. package/src/app/[variants]/(main)/settings/agent/layout.tsx +23 -0
  255. package/src/app/[variants]/(main)/settings/common/features/Common.tsx +6 -8
  256. package/src/app/[variants]/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesNeutral.tsx +33 -11
  257. package/src/app/[variants]/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesPrimary.tsx +60 -11
  258. package/src/app/[variants]/(main)/settings/common/features/Theme/index.tsx +5 -7
  259. package/src/app/[variants]/(main)/settings/features/UpgradeAlert.tsx +1 -2
  260. package/src/app/[variants]/(main)/settings/hooks/useCategory.tsx +1 -2
  261. package/src/app/[variants]/(main)/settings/hotkey/features/HotkeySetting.tsx +4 -6
  262. package/src/app/[variants]/(main)/settings/llm/ProviderList/Azure/index.tsx +2 -6
  263. package/src/app/[variants]/(main)/settings/llm/ProviderList/Bedrock/index.tsx +4 -4
  264. package/src/app/[variants]/(main)/settings/llm/ProviderList/Cloudflare/index.tsx +2 -2
  265. package/src/app/[variants]/(main)/settings/llm/ProviderList/Github/index.tsx +2 -3
  266. package/src/app/[variants]/(main)/settings/llm/ProviderList/HuggingFace/index.tsx +2 -3
  267. package/src/app/[variants]/(main)/settings/llm/components/Checker.tsx +2 -3
  268. package/src/app/[variants]/(main)/settings/llm/components/ProviderConfig/index.tsx +12 -4
  269. package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/Form.tsx +2 -1
  270. package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/index.tsx +2 -3
  271. package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/index.tsx +2 -3
  272. package/src/app/[variants]/(main)/settings/provider/(detail)/azure/page.tsx +1 -2
  273. package/src/app/[variants]/(main)/settings/provider/(detail)/bedrock/page.tsx +1 -1
  274. package/src/app/[variants]/(main)/settings/provider/(detail)/doubao/page.tsx +6 -7
  275. package/src/app/[variants]/(main)/settings/provider/(detail)/ollama/OllamaModelDownloader/index.tsx +0 -0
  276. package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +10 -2
  277. package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/EnableSwitch.tsx +1 -1
  278. package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/index.tsx +16 -42
  279. package/src/app/[variants]/(main)/settings/provider/ProviderMenu/AddNew.tsx +10 -7
  280. package/src/app/[variants]/(main)/settings/provider/ProviderMenu/All.tsx +1 -1
  281. package/src/app/[variants]/(main)/settings/provider/ProviderMenu/List.tsx +3 -3
  282. package/src/app/[variants]/(main)/settings/provider/ProviderMenu/SortProviderModal/index.tsx +2 -2
  283. package/src/app/[variants]/(main)/settings/provider/ProviderMenu/index.tsx +16 -4
  284. package/src/app/[variants]/(main)/settings/provider/_layout/Desktop/Container.tsx +13 -0
  285. package/src/app/[variants]/(main)/settings/provider/_layout/Desktop/index.tsx +20 -0
  286. package/src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx +14 -7
  287. package/src/app/[variants]/(main)/settings/provider/features/ModelList/CreateNewModelModal/Form.tsx +2 -1
  288. package/src/app/[variants]/(main)/settings/provider/features/ModelList/CreateNewModelModal/index.tsx +2 -2
  289. package/src/app/[variants]/(main)/settings/provider/features/ModelList/DisabledModels.tsx +3 -5
  290. package/src/app/[variants]/(main)/settings/provider/features/ModelList/EmptyModels.tsx +2 -3
  291. package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelConfigModal/index.tsx +2 -3
  292. package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx +1 -1
  293. package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelTitle/Search.tsx +5 -17
  294. package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +6 -6
  295. package/src/app/[variants]/(main)/settings/provider/features/ModelList/SortModelModal/index.tsx +2 -2
  296. package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/Checker.tsx +5 -6
  297. package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +3 -4
  298. package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx +3 -5
  299. package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/index.tsx +10 -3
  300. package/src/app/[variants]/(main)/settings/storage/Advanced.tsx +5 -5
  301. package/src/app/[variants]/(main)/settings/sync/features/DeviceInfo/DeviceName.tsx +4 -4
  302. package/src/app/[variants]/(main)/settings/sync/features/WebRTC/ChannelNameInput.tsx +1 -2
  303. package/src/app/[variants]/(main)/settings/sync/features/WebRTC/SyncSwitch/index.css +2 -1
  304. package/src/app/[variants]/(main)/settings/sync/features/WebRTC/index.tsx +5 -7
  305. package/src/app/[variants]/(main)/settings/system-agent/features/createForm.tsx +4 -7
  306. package/src/app/[variants]/(main)/settings/tts/features/OpenAI.tsx +4 -6
  307. package/src/app/[variants]/(main)/settings/tts/features/STT.tsx +5 -6
  308. package/src/app/[variants]/(main)/settings/tts/features/const.tsx +1 -1
  309. package/src/app/[variants]/@modal/(.)changelog/modal/features/ReadDetail.tsx +8 -30
  310. package/src/app/[variants]/loading/Client/Error.tsx +1 -1
  311. package/src/app/[variants]/oauth/consent/[uid]/Consent.tsx +3 -2
  312. package/src/app/[variants]/oauth/consent/[uid]/Login.tsx +2 -2
  313. package/src/app/[variants]/oauth/consent/[uid]/failed/page.tsx +2 -2
  314. package/src/app/desktop/devtools/page.tsx +5 -4
  315. package/src/components/404/index.tsx +1 -2
  316. package/src/components/Cell/index.tsx +2 -2
  317. package/src/components/DragUpload/index.tsx +4 -4
  318. package/src/components/Error/index.tsx +1 -2
  319. package/src/components/FeatureList/index.tsx +1 -1
  320. package/src/components/FileIcon/index.tsx +1 -1
  321. package/src/components/FileParsingStatus/EmbeddingStatus.tsx +1 -2
  322. package/src/components/FileParsingStatus/index.tsx +2 -2
  323. package/src/components/FormInput/FormInput.tsx +2 -2
  324. package/src/components/FormInput/FormPassword.tsx +3 -3
  325. package/src/components/FunctionModal/style.tsx +5 -1
  326. package/src/components/GroupIcon/index.tsx +1 -1
  327. package/src/components/IndexCard/index.tsx +2 -2
  328. package/src/components/MaxTokenSlider.tsx +3 -3
  329. package/src/components/Menu/index.tsx +5 -6
  330. package/src/components/ModelSelect/index.tsx +34 -56
  331. package/src/components/NextAuth/AuthIcons.tsx +3 -3
  332. package/src/components/Notification/index.tsx +2 -1
  333. package/src/components/OllamaSetupGuide/index.tsx +2 -2
  334. package/src/components/RepoIcon/index.tsx +1 -8
  335. package/src/components/SafeSpacing/index.tsx +3 -3
  336. package/src/components/SidebarHeader/index.tsx +6 -6
  337. package/src/components/StatisticCard/TitleWithPercentage.tsx +2 -1
  338. package/src/components/StatisticCard/index.tsx +4 -4
  339. package/src/components/TextArea/index.tsx +3 -3
  340. package/src/components/mdx/Image.tsx +1 -2
  341. package/src/config/aiModels/ai21.ts +2 -4
  342. package/src/config/aiModels/ai360.ts +4 -8
  343. package/src/config/aiModels/azure.ts +1 -2
  344. package/src/config/aiModels/azureai.ts +1 -2
  345. package/src/config/aiModels/cohere.ts +33 -35
  346. package/src/config/aiModels/doubao.ts +56 -56
  347. package/src/config/aiModels/fireworksai.ts +3 -5
  348. package/src/config/aiModels/giteeai.ts +1 -1
  349. package/src/config/aiModels/groq.ts +8 -4
  350. package/src/config/aiModels/hunyuan.ts +7 -5
  351. package/src/config/aiModels/minimax.ts +4 -2
  352. package/src/config/aiModels/mistral.ts +2 -1
  353. package/src/config/aiModels/moonshot.ts +2 -2
  354. package/src/config/aiModels/novita.ts +3 -3
  355. package/src/config/aiModels/nvidia.ts +22 -20
  356. package/src/config/aiModels/openai.ts +2 -4
  357. package/src/config/aiModels/openrouter.ts +5 -10
  358. package/src/config/aiModels/perplexity.ts +1 -2
  359. package/src/config/aiModels/ppio.ts +210 -193
  360. package/src/config/aiModels/qwen.ts +8 -4
  361. package/src/config/aiModels/sambanova.ts +39 -34
  362. package/src/config/aiModels/siliconcloud.ts +50 -50
  363. package/src/config/aiModels/stepfun.ts +6 -4
  364. package/src/config/aiModels/taichu.ts +12 -6
  365. package/src/config/aiModels/tencentcloud.ts +2 -2
  366. package/src/config/aiModels/togetherai.ts +10 -5
  367. package/src/config/aiModels/vllm.ts +11 -14
  368. package/src/config/aiModels/volcengine.ts +1 -2
  369. package/src/config/aiModels/wenxin.ts +8 -16
  370. package/src/config/aiModels/xai.ts +9 -4
  371. package/src/config/aiModels/xinference.ts +20 -25
  372. package/src/config/aiModels/zhipu.ts +3 -2
  373. package/src/config/modelProviders/ai360.ts +3 -6
  374. package/src/config/modelProviders/cohere.ts +2 -1
  375. package/src/config/modelProviders/deepseek.ts +2 -1
  376. package/src/config/modelProviders/doubao.ts +2 -1
  377. package/src/config/modelProviders/fireworksai.ts +2 -4
  378. package/src/config/modelProviders/giteeai.ts +1 -1
  379. package/src/config/modelProviders/index.ts +1 -1
  380. package/src/config/modelProviders/jina.ts +3 -2
  381. package/src/config/modelProviders/nvidia.ts +3 -2
  382. package/src/config/modelProviders/ppio.ts +249 -230
  383. package/src/config/modelProviders/siliconcloud.ts +38 -37
  384. package/src/config/modelProviders/stepfun.ts +1 -1
  385. package/src/config/modelProviders/vllm.ts +1 -1
  386. package/src/config/modelProviders/wenxin.ts +2 -4
  387. package/src/config/modelProviders/xinference.ts +2 -1
  388. package/src/config/modelProviders/zhipu.ts +1 -1
  389. package/src/const/hotkeys.ts +2 -2
  390. package/src/const/layoutTokens.test.ts +2 -2
  391. package/src/const/layoutTokens.ts +3 -3
  392. package/src/const/message.ts +1 -2
  393. package/src/features/AgentSetting/AgentCategory/index.tsx +29 -0
  394. package/src/{app/[variants]/(main)/chat/(workspace)/features/AgentSettings/CategoryContent → features/AgentSetting/AgentCategory}/useCategory.tsx +8 -6
  395. package/src/features/AgentSetting/AgentChat/index.tsx +32 -31
  396. package/src/features/AgentSetting/AgentMeta/AutoGenerateAvatar.tsx +26 -17
  397. package/src/features/AgentSetting/AgentMeta/AutoGenerateInput.tsx +2 -8
  398. package/src/features/AgentSetting/AgentMeta/AutoGenerateSelect.tsx +6 -8
  399. package/src/features/AgentSetting/AgentMeta/BackgroundSwatches.tsx +73 -13
  400. package/src/features/AgentSetting/AgentMeta/index.tsx +42 -45
  401. package/src/features/AgentSetting/AgentModal/index.tsx +39 -20
  402. package/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx +3 -3
  403. package/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx +43 -41
  404. package/src/features/AgentSetting/AgentOpening/index.tsx +1 -1
  405. package/src/features/AgentSetting/AgentPlugin/AddPluginButton.tsx +2 -3
  406. package/src/features/AgentSetting/AgentPlugin/index.tsx +12 -11
  407. package/src/features/AgentSetting/AgentPrompt/TokenTag.tsx +12 -29
  408. package/src/features/AgentSetting/AgentPrompt/index.tsx +48 -147
  409. package/src/features/AgentSetting/AgentSettings.tsx +22 -18
  410. package/src/features/AgentSetting/AgentSettingsContent.tsx +39 -0
  411. package/src/features/AgentSetting/AgentTTS/SelectWithTTSPreview.tsx +8 -5
  412. package/src/features/AgentSetting/AgentTTS/index.tsx +27 -28
  413. package/src/features/AgentSetting/AgentTTS/options.tsx +1 -1
  414. package/src/features/AgentSetting/index.tsx +2 -1
  415. package/src/features/AgentSetting/store/action.ts +24 -24
  416. package/src/features/AgentSetting/store/index.ts +2 -0
  417. package/src/features/AgentSetting/store/initialState.ts +6 -7
  418. package/src/features/AgentSetting/store/selectors.ts +19 -1
  419. package/src/features/AlertBanner/CloudBanner.tsx +1 -2
  420. package/src/features/ChatInput/ActionBar/Clear.tsx +7 -5
  421. package/src/features/ChatInput/ActionBar/History.tsx +37 -35
  422. package/src/features/ChatInput/ActionBar/Knowledge/Dropdown.tsx +30 -60
  423. package/src/features/ChatInput/ActionBar/Knowledge/index.tsx +17 -13
  424. package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +2 -1
  425. package/src/features/ChatInput/ActionBar/Model/ReasoningTokenSlider.tsx +3 -3
  426. package/src/features/ChatInput/ActionBar/Model/index.tsx +12 -38
  427. package/src/features/ChatInput/ActionBar/Params/ParamsControls.tsx +3 -17
  428. package/src/features/ChatInput/ActionBar/Params/index.tsx +10 -28
  429. package/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx +15 -4
  430. package/src/features/ChatInput/ActionBar/Search/FunctionCallingModelSelect/index.tsx +4 -3
  431. package/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx +5 -7
  432. package/src/features/ChatInput/ActionBar/Search/SwitchPanel.tsx +49 -60
  433. package/src/features/ChatInput/ActionBar/Search/index.tsx +25 -36
  434. package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +7 -6
  435. package/src/features/ChatInput/ActionBar/Tools/Dropdown.tsx +75 -77
  436. package/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx +4 -30
  437. package/src/features/ChatInput/ActionBar/Tools/index.tsx +5 -3
  438. package/src/features/ChatInput/ActionBar/Upload/ClientMode.tsx +6 -4
  439. package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +16 -8
  440. package/src/features/ChatInput/ActionBar/index.tsx +2 -2
  441. package/src/features/ChatInput/ActionBar/styles.ts +14 -0
  442. package/src/features/ChatInput/Desktop/InputArea/index.tsx +2 -2
  443. package/src/features/ChatInput/Desktop/index.tsx +1 -1
  444. package/src/features/ChatInput/STT/common.tsx +10 -5
  445. package/src/features/ChatInput/Topic/index.tsx +3 -8
  446. package/src/features/ChatInput/components/ActionDropdown.tsx +62 -0
  447. package/src/features/ChatInput/components/ActionPopover.tsx +84 -0
  448. package/src/features/ChatInput/components/UploadDetail/UploadStatus.tsx +1 -1
  449. package/src/features/Conversation/Actions/Assistant.tsx +5 -14
  450. package/src/features/Conversation/Actions/Error.tsx +3 -3
  451. package/src/features/Conversation/Actions/Fallback.tsx +8 -2
  452. package/src/features/Conversation/Actions/Tool.tsx +0 -1
  453. package/src/features/Conversation/Actions/User.tsx +6 -4
  454. package/src/features/Conversation/Actions/customAction.ts +3 -3
  455. package/src/features/Conversation/Error/APIKeyForm/Bedrock.tsx +8 -9
  456. package/src/features/Conversation/Error/APIKeyForm/ProviderApiKeyForm.tsx +1 -2
  457. package/src/features/Conversation/Error/APIKeyForm/index.tsx +1 -1
  458. package/src/features/Conversation/Error/AccessCodeForm.tsx +3 -3
  459. package/src/features/Conversation/Error/ClerkLogin/index.tsx +1 -1
  460. package/src/features/Conversation/Error/ErrorJsonViewer.tsx +1 -1
  461. package/src/features/Conversation/Error/InvalidAccessCode.tsx +2 -2
  462. package/src/features/Conversation/Error/OAuthForm.tsx +2 -2
  463. package/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel.tsx +1 -1
  464. package/src/features/Conversation/Error/OllamaDesktopSetupGuide/index.tsx +1 -1
  465. package/src/features/Conversation/Extras/TTS/Player.tsx +2 -3
  466. package/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx +1 -2
  467. package/src/features/Conversation/Extras/Usage/UsageDetail/TokenProgress.tsx +0 -1
  468. package/src/features/Conversation/Messages/Assistant/FileChunks/Item/index.tsx +1 -1
  469. package/src/features/Conversation/Messages/Assistant/Tool/Inspector/ToolTitle.tsx +1 -1
  470. package/src/features/Conversation/Messages/Assistant/Tool/Render/ErrorResponse.tsx +1 -1
  471. package/src/features/Conversation/Messages/Assistant/Tool/Render/KeyValueEditor.tsx +2 -2
  472. package/src/features/Conversation/Messages/Assistant/Tool/Render/PluginSettings.tsx +2 -2
  473. package/src/features/Conversation/Messages/User/ImageFileListViewer.tsx +3 -3
  474. package/src/features/Conversation/Messages/User/MarkdownRender/ContentPreview.tsx +4 -29
  475. package/src/features/Conversation/components/BackBottom/index.tsx +1 -2
  476. package/src/features/Conversation/components/ChatItem/ActionsBar.tsx +5 -4
  477. package/src/features/Conversation/components/ChatItem/index.tsx +2 -2
  478. package/src/features/Conversation/components/History/index.tsx +1 -5
  479. package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/Icon.tsx +5 -30
  480. package/src/features/Conversation/components/MarkdownElements/LocalFile/Render/LocalFile.tsx +1 -1
  481. package/src/features/Conversation/components/VirtualizedList/index.tsx +1 -6
  482. package/src/features/Conversation/hooks/useChatListActionsBar.tsx +7 -7
  483. package/src/features/Conversation/types/index.tsx +3 -3
  484. package/src/features/DataImporter/Error.tsx +3 -3
  485. package/src/features/DataImporter/ImportDetail.tsx +2 -2
  486. package/src/features/DataImporter/SuccessResult.tsx +2 -2
  487. package/src/features/DevPanel/FeatureFlagViewer/Form.tsx +1 -1
  488. package/src/features/DevPanel/MetadataViewer/Ld.tsx +1 -1
  489. package/src/features/DevPanel/MetadataViewer/MetaData.tsx +3 -4
  490. package/src/features/DevPanel/MetadataViewer/Og.tsx +3 -4
  491. package/src/features/DevPanel/MetadataViewer/index.tsx +3 -3
  492. package/src/features/DevPanel/PostgresViewer/SchemaSidebar/Columns.tsx +1 -1
  493. package/src/features/DevPanel/SystemInspector/index.tsx +3 -3
  494. package/src/features/DevPanel/features/FloatPanel.tsx +5 -4
  495. package/src/features/DevPanel/features/Header.tsx +1 -5
  496. package/src/features/DevPanel/features/Table/TooltipContent.tsx +1 -1
  497. package/src/features/ElectronTitlebar/Connection/ConnectionMode.tsx +1 -2
  498. package/src/features/ElectronTitlebar/Connection/RemoteStatus.tsx +3 -1
  499. package/src/features/ElectronTitlebar/Connection/Waiting.tsx +3 -3
  500. package/src/features/ElectronTitlebar/UpdateModal.tsx +2 -1
  501. package/src/features/ElectronTitlebar/UpdateNotification.tsx +2 -2
  502. package/src/features/FileManager/ChunkDrawer/Content.tsx +1 -0
  503. package/src/features/FileManager/ChunkDrawer/SimilaritySearchList/Item.tsx +1 -1
  504. package/src/features/FileManager/FileList/FileListItem/DropdownMenu.tsx +2 -2
  505. package/src/features/FileManager/FileList/FileListItem/index.tsx +5 -3
  506. package/src/features/FileManager/FileList/FileSkeleton.tsx +1 -1
  507. package/src/features/FileManager/FileList/ToolBar/Config.tsx +3 -2
  508. package/src/features/FileManager/FileList/ToolBar/MultiSelectActions.tsx +11 -3
  509. package/src/features/FileManager/FileList/index.tsx +1 -1
  510. package/src/features/FileManager/Header/FilesSearchBar.tsx +3 -8
  511. package/src/features/FileManager/Header/TogglePanelButton.tsx +42 -0
  512. package/src/features/FileManager/Header/UploadFileButton.tsx +4 -4
  513. package/src/features/FileManager/Header/index.tsx +14 -26
  514. package/src/features/FileManager/index.tsx +0 -1
  515. package/src/features/FileSidePanel/index.tsx +1 -1
  516. package/src/features/FileViewer/NotSupport/index.tsx +1 -2
  517. package/src/features/FileViewer/Renderer/TXT/index.tsx +6 -1
  518. package/src/features/HotkeyHelperPanel/index.tsx +3 -3
  519. package/src/features/InitClientDB/EnableModal.tsx +2 -3
  520. package/src/features/InitClientDB/ErrorResult.tsx +4 -4
  521. package/src/features/InitClientDB/features/DatabaseRepair/Backup.tsx +3 -3
  522. package/src/features/InitClientDB/features/DatabaseRepair/Diagnosis.tsx +2 -2
  523. package/src/features/InitClientDB/features/DatabaseRepair/Repair.tsx +2 -2
  524. package/src/features/InitClientDB/features/DatabaseRepair/index.tsx +12 -6
  525. package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +45 -62
  526. package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/index.tsx +1 -1
  527. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/Action.tsx +1 -2
  528. package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/List.tsx +1 -1
  529. package/src/features/KnowledgeBaseModal/CreateNew/CreateForm.tsx +28 -38
  530. package/src/features/KnowledgeBaseModal/CreateNew/index.tsx +1 -1
  531. package/src/features/MobileSwitchLoading/index.tsx +1 -1
  532. package/src/features/MobileTabBar/index.tsx +5 -4
  533. package/src/features/ModelParamsControl/Temperature.tsx +1 -1
  534. package/src/features/ModelSelect/index.tsx +14 -4
  535. package/src/features/ModelSwitchPanel/index.tsx +4 -13
  536. package/src/features/OllamaModelDownloader/index.tsx +2 -2
  537. package/src/features/PluginDetailModal/Meta.tsx +13 -41
  538. package/src/features/PluginDetailModal/index.tsx +34 -30
  539. package/src/features/PluginDevModal/LocalForm.tsx +1 -0
  540. package/src/features/PluginDevModal/MCPManifestForm/ArgsInput.tsx +1 -1
  541. package/src/features/PluginDevModal/MCPManifestForm/MCPTypeSelect.tsx +3 -3
  542. package/src/features/PluginDevModal/MCPManifestForm/index.tsx +24 -24
  543. package/src/features/PluginDevModal/PluginPreview.tsx +14 -17
  544. package/src/features/PluginDevModal/UrlManifestForm.tsx +1 -1
  545. package/src/features/PluginDevModal/index.tsx +3 -2
  546. package/src/features/PluginSettings/PluginSettingRender.tsx +11 -43
  547. package/src/features/PluginSettings/index.tsx +38 -25
  548. package/src/features/PluginStore/AddPluginButton.tsx +2 -3
  549. package/src/features/PluginStore/InstalledPluginList.tsx +1 -3
  550. package/src/features/PluginStore/OnlineList.tsx +2 -4
  551. package/src/features/PluginStore/PluginItem/Action.tsx +2 -2
  552. package/src/features/PluginStore/PluginItem/PluginAvatar.tsx +8 -2
  553. package/src/features/PluginStore/PluginItem/PluginTag.tsx +2 -31
  554. package/src/features/PluginStore/index.tsx +2 -2
  555. package/src/features/PluginTag/PluginStatus.tsx +2 -2
  556. package/src/features/PluginTag/index.tsx +1 -3
  557. package/src/features/PluginsUI/Render/DefaultType/SystemJsRender/utils.ts +0 -1
  558. package/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx +4 -4
  559. package/src/features/Portal/Artifacts/Body/Renderer/index.tsx +1 -1
  560. package/src/features/Portal/Artifacts/Body/index.tsx +6 -3
  561. package/src/features/Portal/Artifacts/Header.tsx +11 -6
  562. package/src/features/Portal/FilePreview/Body/index.tsx +20 -7
  563. package/src/features/Portal/Plugins/Header.tsx +1 -1
  564. package/src/features/Portal/Thread/Chat/ChatInput/Footer.tsx +2 -2
  565. package/src/features/Portal/Thread/Header/Active.tsx +12 -6
  566. package/src/features/Portal/Thread/Header/New.tsx +13 -12
  567. package/src/features/Portal/Thread/Header/index.tsx +10 -3
  568. package/src/features/Setting/SettingContainer.tsx +12 -19
  569. package/src/features/ShareModal/ShareImage/Preview.tsx +2 -1
  570. package/src/features/ShareModal/ShareImage/index.tsx +8 -11
  571. package/src/features/ShareModal/ShareJSON/Preview.tsx +1 -1
  572. package/src/features/ShareModal/ShareJSON/index.tsx +6 -5
  573. package/src/features/ShareModal/ShareText/index.tsx +8 -5
  574. package/src/features/ShareModal/index.tsx +2 -3
  575. package/src/features/SyncStatusInspector/DisableSync.tsx +2 -2
  576. package/src/features/SyncStatusInspector/EnableSync.tsx +3 -3
  577. package/src/features/SyncStatusInspector/EnableTag.tsx +2 -2
  578. package/src/features/User/PlanTag.tsx +1 -2
  579. package/src/features/User/UserAvatar.tsx +1 -1
  580. package/src/features/User/UserLoginOrSignup/Community.tsx +1 -1
  581. package/src/features/User/UserPanel/LangButton.tsx +1 -1
  582. package/src/features/User/UserPanel/ThemeButton.tsx +1 -1
  583. package/src/features/User/UserPanel/useMenu.tsx +2 -1
  584. package/src/hooks/useHotkeys/filesScope.ts +37 -0
  585. package/src/hooks/useHotkeys/index.ts +1 -0
  586. package/src/hooks/useScreenshot.ts +1 -1
  587. package/src/layout/GlobalProvider/Locale.tsx +41 -1
  588. package/src/layout/GlobalProvider/index.tsx +12 -12
  589. package/src/libs/agent-runtime/ai360/index.ts +24 -31
  590. package/src/libs/agent-runtime/baichuan/index.ts +20 -20
  591. package/src/libs/agent-runtime/cohere/index.ts +10 -11
  592. package/src/libs/agent-runtime/deepseek/index.ts +25 -17
  593. package/src/libs/agent-runtime/fireworksai/index.ts +11 -14
  594. package/src/libs/agent-runtime/giteeai/index.ts +19 -25
  595. package/src/libs/agent-runtime/groq/index.ts +14 -16
  596. package/src/libs/agent-runtime/higress/index.ts +17 -17
  597. package/src/libs/agent-runtime/huggingface/index.ts +19 -23
  598. package/src/libs/agent-runtime/hunyuan/index.test.ts +40 -40
  599. package/src/libs/agent-runtime/hunyuan/index.ts +16 -21
  600. package/src/libs/agent-runtime/internlm/index.ts +9 -13
  601. package/src/libs/agent-runtime/jina/index.ts +12 -16
  602. package/src/libs/agent-runtime/lmstudio/index.ts +9 -13
  603. package/src/libs/agent-runtime/minimax/index.ts +3 -3
  604. package/src/libs/agent-runtime/moonshot/index.ts +26 -30
  605. package/src/libs/agent-runtime/novita/index.ts +17 -17
  606. package/src/libs/agent-runtime/nvidia/index.ts +9 -13
  607. package/src/libs/agent-runtime/ppio/fixtures/models.json +4 -10
  608. package/src/libs/agent-runtime/ppio/index.ts +19 -14
  609. package/src/libs/agent-runtime/siliconcloud/index.ts +19 -19
  610. package/src/libs/agent-runtime/spark/index.ts +1 -2
  611. package/src/libs/agent-runtime/stepfun/index.ts +29 -36
  612. package/src/libs/agent-runtime/tencentcloud/index.ts +12 -16
  613. package/src/libs/agent-runtime/utils/cloudflareHelpers.ts +1 -6
  614. package/src/libs/agent-runtime/utils/streams/openai.test.ts +0 -1
  615. package/src/libs/agent-runtime/vllm/index.ts +9 -13
  616. package/src/libs/agent-runtime/wenxin/index.test.ts +26 -18
  617. package/src/libs/agent-runtime/wenxin/index.ts +1 -1
  618. package/src/libs/agent-runtime/xai/index.ts +11 -13
  619. package/src/libs/agent-runtime/xinference/index.ts +15 -13
  620. package/src/libs/agent-runtime/zeroone/index.ts +9 -13
  621. package/src/libs/agent-runtime/zhipu/index.ts +33 -30
  622. package/src/libs/langchain/loaders/epub/index.ts +3 -2
  623. package/src/libs/langchain/loaders/index.ts +1 -1
  624. package/src/locales/default/color.ts +22 -0
  625. package/src/locales/default/common.ts +2 -2
  626. package/src/locales/default/file.ts +3 -0
  627. package/src/locales/default/index.ts +2 -0
  628. package/src/locales/default/setting.ts +15 -2
  629. package/src/server/modules/ContentChunk/rules.test.ts +1 -0
  630. package/src/server/utils/tempFileManager.ts +1 -1
  631. package/src/services/message/type.ts +2 -1
  632. package/src/services/plugin/client.test.ts +3 -1
  633. package/src/store/agent/selectors.ts +1 -1
  634. package/src/store/aiInfra/index.ts +1 -1
  635. package/src/store/chat/slices/builtinTool/actions/dalle.ts +0 -2
  636. package/src/store/chat/slices/portal/initialState.ts +7 -2
  637. package/src/store/session/index.ts +1 -1
  638. package/src/tools/dalle/Render/Item/EditMode.tsx +3 -3
  639. package/src/tools/dalle/Render/Item/Error.tsx +3 -4
  640. package/src/tools/dalle/Render/Item/index.tsx +1 -1
  641. package/src/tools/dalle/Render/ToolBar.tsx +2 -1
  642. package/src/tools/dalle/Render/index.tsx +4 -3
  643. package/src/tools/local-files/Render/ListFiles/index.tsx +1 -1
  644. package/src/tools/local-files/Render/ReadLocalFile/ReadFileView.tsx +1 -1
  645. package/src/tools/local-files/Render/SearchFiles/SearchQuery/index.tsx +5 -6
  646. package/src/tools/local-files/components/FileItem.tsx +1 -1
  647. package/src/tools/web-browsing/Portal/PageContent/index.tsx +14 -8
  648. package/src/tools/web-browsing/Portal/Search/Footer.tsx +2 -3
  649. package/src/tools/web-browsing/Portal/Search/ResultList/SearchItem/TitleExtra.tsx +2 -2
  650. package/src/tools/web-browsing/Render/Search/ConfigForm/Form.tsx +2 -3
  651. package/src/tools/web-browsing/Render/Search/ConfigForm/index.tsx +1 -1
  652. package/src/tools/web-browsing/Render/Search/SearchResult/index.tsx +3 -3
  653. package/src/tools/web-browsing/Render/Search/index.tsx +1 -1
  654. package/src/tools/web-browsing/components/SearchBar.tsx +3 -8
  655. package/src/types/hotkey.ts +1 -0
  656. package/src/app/[variants]/(main)/changelog/_layout/Desktop.tsx +0 -25
  657. package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/CategoryContent/index.tsx +0 -37
  658. package/src/app/[variants]/(main)/discover/features/ModelFeatureTags.tsx +0 -86
  659. package/src/app/[variants]/(main)/settings/provider/_layout/Desktop.tsx +0 -37
  660. package/src/features/AgentSetting/useSyncAgemtSettings.ts +0 -14
  661. package/src/features/ChatInput/ActionBar/Search/ExaIcon.tsx +0 -15
@@ -1,4 +1,4 @@
1
- import { ActionIcon } from '@lobehub/ui';
1
+ import { ActionIcon, ActionIconProps } from '@lobehub/ui';
2
2
  import { Compass, FolderClosed, MessageSquare } from 'lucide-react';
3
3
  import Link from 'next/link';
4
4
  import { memo } from 'react';
@@ -10,6 +10,12 @@ import { SidebarTabKey } from '@/store/global/initialState';
10
10
  import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
11
11
  import { useSessionStore } from '@/store/session';
12
12
 
13
+ const ICON_SIZE: ActionIconProps['size'] = {
14
+ blockSize: 40,
15
+ size: 24,
16
+ strokeWidth: 2,
17
+ };
18
+
13
19
  export interface TopActionProps {
14
20
  isPinned?: boolean | null;
15
21
  tab?: SidebarTabKey;
@@ -20,6 +26,10 @@ const TopActions = memo<TopActionProps>(({ tab, isPinned }) => {
20
26
  const switchBackToChat = useGlobalStore((s) => s.switchBackToChat);
21
27
  const { showMarket, enableKnowledgeBase } = useServerConfigStore(featureFlagsSelectors);
22
28
 
29
+ const isChatActive = tab === SidebarTabKey.Chat && !isPinned;
30
+ const isFilesActive = tab === SidebarTabKey.Files;
31
+ const isDiscoverActive = tab === SidebarTabKey.Discover;
32
+
23
33
  return (
24
34
  <Flexbox gap={8}>
25
35
  <Link
@@ -31,32 +41,32 @@ const TopActions = memo<TopActionProps>(({ tab, isPinned }) => {
31
41
  }}
32
42
  >
33
43
  <ActionIcon
34
- active={tab === SidebarTabKey.Chat && !isPinned}
44
+ active={isChatActive}
35
45
  icon={MessageSquare}
36
- placement={'right'}
37
- size="large"
46
+ size={ICON_SIZE}
38
47
  title={t('tab.chat')}
48
+ tooltipProps={{ placement: 'right' }}
39
49
  />
40
50
  </Link>
41
51
  {enableKnowledgeBase && (
42
52
  <Link aria-label={t('tab.files')} href={'/files'}>
43
53
  <ActionIcon
44
- active={tab === SidebarTabKey.Files}
54
+ active={isFilesActive}
45
55
  icon={FolderClosed}
46
- placement={'right'}
47
- size="large"
56
+ size={ICON_SIZE}
48
57
  title={t('tab.files')}
58
+ tooltipProps={{ placement: 'right' }}
49
59
  />
50
60
  </Link>
51
61
  )}
52
62
  {showMarket && (
53
63
  <Link aria-label={t('tab.discover')} href={'/discover'}>
54
64
  <ActionIcon
55
- active={tab === SidebarTabKey.Discover}
65
+ active={isDiscoverActive}
56
66
  icon={Compass}
57
- placement={'right'}
58
- size="large"
67
+ size={ICON_SIZE}
59
68
  title={t('tab.discover')}
69
+ tooltipProps={{ placement: 'right' }}
60
70
  />
61
71
  </Link>
62
72
  )}
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { SideNav } from '@lobehub/ui';
4
+ import { useTheme } from 'antd-style';
4
5
  import { parseAsBoolean, useQueryState } from 'nuqs';
5
6
  import { Suspense, memo } from 'react';
6
7
 
@@ -24,36 +25,27 @@ const Top = () => {
24
25
  };
25
26
 
26
27
  const Nav = memo(() => {
28
+ const theme = useTheme();
27
29
  const inZenMode = useGlobalStore(systemStatusSelectors.inZenMode);
28
30
  const { showPinList } = useServerConfigStore(featureFlagsSelectors);
29
31
 
30
32
  return (
31
33
  !inZenMode && (
32
34
  <SideNav
33
- avatar={
34
- <div className={electronStylish.nodrag}>
35
- <Avatar />
36
- </div>
37
- }
38
- bottomActions={
39
- <div className={electronStylish.nodrag}>
40
- <BottomActions />
41
- </div>
42
- }
43
- className={electronStylish.draggable}
35
+ avatar={<Avatar />}
36
+ bottomActions={<BottomActions />}
37
+ className={electronStylish.nodrag}
44
38
  style={{
45
39
  height: '100%',
46
40
  zIndex: 100,
47
41
  ...(isDesktop
48
42
  ? { background: 'transparent', borderInlineEnd: 0, paddingBlockStart: 8 }
49
- : {}),
43
+ : { background: theme.colorBgLayout }),
50
44
  }}
51
45
  topActions={
52
46
  <Suspense>
53
- <div className={electronStylish.nodrag}>
54
- <Top />
55
- {showPinList && <PinList />}
56
- </div>
47
+ <Top />
48
+ {showPinList && <PinList />}
57
49
  </Suspense>
58
50
  }
59
51
  />
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { Icon } from '@lobehub/ui';
4
- import { MobileTabBar, type MobileTabBarProps } from '@lobehub/ui/mobile';
4
+ import { TabBar, type TabBarProps } from '@lobehub/ui/mobile';
5
5
  import { createStyles } from 'antd-style';
6
6
  import { Compass, MessageSquare, User } from 'lucide-react';
7
7
  import { useRouter } from 'next/navigation';
@@ -9,6 +9,7 @@ import { rgba } from 'polished';
9
9
  import { memo, useMemo } from 'react';
10
10
  import { useTranslation } from 'react-i18next';
11
11
 
12
+ import { MOBILE_TABBAR_HEIGHT } from '@/const/layoutTokens';
12
13
  import { useActiveTabKey } from '@/hooks/useActiveTabKey';
13
14
  import { SidebarTabKey } from '@/store/global/initialState';
14
15
  import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
@@ -35,7 +36,7 @@ const NavBar = memo(() => {
35
36
 
36
37
  const { showMarket } = useServerConfigStore(featureFlagsSelectors);
37
38
 
38
- const items: MobileTabBarProps['items'] = useMemo(
39
+ const items: TabBarProps['items'] = useMemo(
39
40
  () =>
40
41
  [
41
42
  {
@@ -68,11 +69,18 @@ const NavBar = memo(() => {
68
69
  },
69
70
  title: t('tab.me'),
70
71
  },
71
- ].filter(Boolean) as MobileTabBarProps['items'],
72
+ ].filter(Boolean) as TabBarProps['items'],
72
73
  [t],
73
74
  );
74
75
 
75
- return <MobileTabBar activeKey={activeKey} className={styles.container} items={items} />;
76
+ return (
77
+ <TabBar
78
+ activeKey={activeKey}
79
+ className={styles.container}
80
+ height={MOBILE_TABBAR_HEIGHT}
81
+ items={items}
82
+ />
83
+ );
76
84
  });
77
85
 
78
86
  NavBar.displayName = 'NavBar';
@@ -0,0 +1,35 @@
1
+ 'use client';
2
+
3
+ import { useTheme } from 'antd-style';
4
+ import { PropsWithChildren, memo } from 'react';
5
+ import { Flexbox } from 'react-layout-kit';
6
+
7
+ const Container = memo<PropsWithChildren>(({ children }) => {
8
+ const theme = useTheme();
9
+
10
+ return (
11
+ <Flexbox
12
+ align={'center'}
13
+ style={{
14
+ background: theme.colorBgContainerSecondary,
15
+ height: '100%',
16
+ overflowX: 'hidden',
17
+ overflowY: 'auto',
18
+ }}
19
+ width={'100%'}
20
+ >
21
+ <Flexbox
22
+ gap={24}
23
+ paddingBlock={24}
24
+ paddingInline={16}
25
+ style={{
26
+ width: 'min(100%, 1024px)',
27
+ }}
28
+ >
29
+ {children}
30
+ </Flexbox>
31
+ </Flexbox>
32
+ );
33
+ });
34
+
35
+ export default Container;
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ import Hero from '../../features/Hero';
4
+ import Container from './Container';
5
+
6
+ type Props = { children: ReactNode };
7
+
8
+ const Layout = ({ children }: Props) => {
9
+ return (
10
+ <Container>
11
+ <Hero />
12
+ {children}
13
+ </Container>
14
+ );
15
+ };
16
+
17
+ Layout.displayName = 'DesktopChangelogLayout';
18
+
19
+ export default Layout;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { MobileNavBar, MobileNavBarTitle } from '@lobehub/ui';
3
+ import { ChatHeader } from '@lobehub/ui/mobile';
4
4
  import { useRouter } from 'next/navigation';
5
5
  import { memo } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
@@ -13,9 +13,9 @@ const Header = memo(() => {
13
13
 
14
14
  const router = useRouter();
15
15
  return (
16
- <MobileNavBar
16
+ <ChatHeader
17
17
  center={
18
- <MobileNavBarTitle
18
+ <ChatHeader.Title
19
19
  title={
20
20
  <Flexbox align={'center'} gap={4} horizontal>
21
21
  {t('title')}
@@ -1,5 +1,4 @@
1
- import { Hotkey, Icon } from '@lobehub/ui';
2
- import { Button, Dropdown } from 'antd';
1
+ import { Button, Dropdown, Hotkey, Icon } from '@lobehub/ui';
3
2
  import { createStyles } from 'antd-style';
4
3
  import { BotMessageSquare, LucideCheck, LucideChevronDown, MessageSquarePlus } from 'lucide-react';
5
4
  import { memo } from 'react';
@@ -93,7 +92,7 @@ const SendMore = memo<SendMoreProps>(({ disabled, isMac }) => {
93
92
  <Button
94
93
  aria-label={t('input.more')}
95
94
  className={styles.arrow}
96
- icon={<Icon icon={LucideChevronDown} />}
95
+ icon={LucideChevronDown}
97
96
  type={'primary'}
98
97
  />
99
98
  </Dropdown>
@@ -28,10 +28,10 @@ const ShortcutHint = memo(() => {
28
28
  horizontal
29
29
  style={{ color: theme.colorTextDescription, fontSize: 12, marginRight: 12 }}
30
30
  >
31
- <Hotkey keys={sendShortcut} style={{ color: 'inherit' }} variant={'pure'} />
31
+ <Hotkey keys={sendShortcut} style={{ color: 'inherit' }} variant={'borderless'} />
32
32
  <span>{t('input.send')}</span>
33
33
  <span>/</span>
34
- <Hotkey keys={wrapperShortcut} style={{ color: 'inherit' }} variant={'pure'} />
34
+ <Hotkey keys={wrapperShortcut} style={{ color: 'inherit' }} variant={'borderless'} />
35
35
  <span>{t('input.warp')}</span>
36
36
  </Flexbox>
37
37
  );
@@ -1,4 +1,5 @@
1
- import { Button, Space } from 'antd';
1
+ import { Button } from '@lobehub/ui';
2
+ import { Space } from 'antd';
2
3
  import { createStyles } from 'antd-style';
3
4
  import { rgba } from 'polished';
4
5
  import { Suspense, memo, useEffect, useState } from 'react';
@@ -79,7 +80,7 @@ const Footer = memo<FooterProps>(({ onExpandChange, expand }) => {
79
80
  flex={'none'}
80
81
  gap={8}
81
82
  horizontal
82
- padding={'0 24px'}
83
+ paddingInline={16}
83
84
  >
84
85
  <Flexbox align={'center'} gap={8} horizontal style={{ overflow: 'hidden' }}>
85
86
  {expand && <LocalFiles />}
@@ -91,7 +92,7 @@ const Footer = memo<FooterProps>(({ onExpandChange, expand }) => {
91
92
  {isAIGenerating ? (
92
93
  <Button
93
94
  className={styles.loadingButton}
94
- icon={<StopLoadingIcon />}
95
+ icon={StopLoadingIcon}
95
96
  onClick={stopGenerateMessage}
96
97
  >
97
98
  {t('input.stop')}
@@ -1,4 +1,4 @@
1
- import { ImageGallery } from '@lobehub/ui';
1
+ import { PreviewGroup } from '@lobehub/ui';
2
2
  import isEqual from 'fast-deep-equal';
3
3
  import { memo } from 'react';
4
4
  import { Flexbox } from 'react-layout-kit';
@@ -20,11 +20,11 @@ const Files = memo(() => {
20
20
  padding={'4px 8px 8px'}
21
21
  style={{ overflow: 'scroll', width: '100%' }}
22
22
  >
23
- <ImageGallery>
23
+ <PreviewGroup>
24
24
  {list.map((i) => (
25
25
  <FileItem {...i} key={i.id} loading={i.status === 'pending'} />
26
26
  ))}
27
- </ImageGallery>
27
+ </PreviewGroup>
28
28
  </Flexbox>
29
29
  </Flexbox>
30
30
  );
@@ -1,4 +1,5 @@
1
- import { ActionIcon, MobileSafeArea, TextArea } from '@lobehub/ui';
1
+ import { ActionIcon, TextArea } from '@lobehub/ui';
2
+ import { SafeArea } from '@lobehub/ui/mobile';
2
3
  import { useSize } from 'ahooks';
3
4
  import { createStyles } from 'antd-style';
4
5
  import { TextAreaRef } from 'antd/es/input/TextArea';
@@ -100,7 +101,7 @@ const MobileChatInputArea = forwardRef<TextAreaRef, MobileChatInputAreaProps>(
100
101
  className={styles.expandButton}
101
102
  icon={expand ? ChevronDown : ChevronUp}
102
103
  onClick={() => setExpand?.(!expand)}
103
- size={{ blockSize: 24, borderRadius: '50%', fontSize: 14 }}
104
+ size={{ blockSize: 24, borderRadius: '50%', size: 14 }}
104
105
  style={expand ? { top: 6 } : {}}
105
106
  />
106
107
  )}
@@ -137,15 +138,15 @@ const MobileChatInputArea = forwardRef<TextAreaRef, MobileChatInputAreaProps>(
137
138
  placeholder={t('sendPlaceholder')}
138
139
  ref={ref}
139
140
  style={{ height: 36, paddingBlock: 6 }}
140
- type={expand ? 'pure' : 'block'}
141
141
  value={value}
142
+ variant={expand ? 'borderless' : 'filled'}
142
143
  />
143
144
  </InnerContainer>
144
145
  </Flexbox>
145
146
  {bottomAddons && (
146
147
  <Flexbox style={showAddons ? {} : { display: 'none' }}>{bottomAddons}</Flexbox>
147
148
  )}
148
- {safeArea && !isFocused && <MobileSafeArea position={'bottom'} />}
149
+ {safeArea && !isFocused && <SafeArea position={'bottom'} />}
149
150
  </Flexbox>
150
151
  );
151
152
  },
@@ -1,5 +1,4 @@
1
- import { ActionIcon, type ActionIconSize, Icon } from '@lobehub/ui';
2
- import { Button } from 'antd';
1
+ import { ActionIcon, type ActionIconSize, Button } from '@lobehub/ui';
3
2
  import { Loader2, SendHorizontal } from 'lucide-react';
4
3
  import { memo } from 'react';
5
4
 
@@ -14,7 +13,7 @@ const MobileChatSendButton = memo<MobileChatSendButtonProps>(
14
13
  ({ loading, onStop, onSend, disabled }) => {
15
14
  const size: ActionIconSize = {
16
15
  blockSize: 36,
17
- fontSize: 16,
16
+ size: 16,
18
17
  };
19
18
 
20
19
  return loading ? (
@@ -22,7 +21,7 @@ const MobileChatSendButton = memo<MobileChatSendButtonProps>(
22
21
  ) : (
23
22
  <Button
24
23
  disabled={disabled}
25
- icon={(<Icon icon={SendHorizontal} />) as any}
24
+ icon={SendHorizontal}
26
25
  onClick={onSend}
27
26
  style={{ flex: 'none' }}
28
27
  type={'primary'}
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { ActionIcon, Avatar, Grid } from '@lobehub/ui';
3
+ import { ActionIcon, Avatar, Block, Grid } from '@lobehub/ui';
4
4
  import { Skeleton, Typography } from 'antd';
5
5
  import { createStyles } from 'antd-style';
6
6
  import { RefreshCw } from 'lucide-react';
@@ -27,16 +27,10 @@ const useStyles = createStyles(({ css, token, responsive }) => ({
27
27
  height: 100%;
28
28
  min-height: 110px;
29
29
  padding: 16px;
30
- border-radius: ${token.borderRadius}px;
31
-
32
- color: ${token.colorText};
30
+ border-radius: ${token.borderRadiusLG}px;
33
31
 
34
32
  background: ${token.colorBgContainer};
35
33
 
36
- &:hover {
37
- background: ${token.colorBgElevated};
38
- }
39
-
40
34
  ${responsive.mobile} {
41
35
  min-height: 72px;
42
36
  }
@@ -78,9 +72,9 @@ const AgentsSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
78
72
  const agentLength = mobile ? 2 : 4;
79
73
 
80
74
  const loadingCards = Array.from({ length: agentLength }).map((_, index) => (
81
- <Flexbox className={styles.card} key={index}>
75
+ <Block className={styles.card} key={index}>
82
76
  <Skeleton active avatar paragraph={{ rows: 2 }} title={false} />
83
- </Flexbox>
77
+ </Block>
84
78
  ));
85
79
 
86
80
  const handleRefresh = () => {
@@ -98,7 +92,7 @@ const AgentsSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
98
92
  <ActionIcon
99
93
  icon={RefreshCw}
100
94
  onClick={handleRefresh}
101
- size={{ blockSize: 24, fontSize: 14 }}
95
+ size={{ blockSize: 24, size: 14 }}
102
96
  title={t('guide.agents.replaceBtn')}
103
97
  />
104
98
  </Flexbox>
@@ -113,9 +107,9 @@ const AgentsSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
113
107
  key={item.identifier}
114
108
  prefetch={false}
115
109
  >
116
- <Flexbox className={styles.card} gap={8} horizontal>
110
+ <Block className={styles.card} clickable gap={12} horizontal variant={'outlined'}>
117
111
  <Avatar avatar={item.meta.avatar} style={{ flex: 'none' }} />
118
- <Flexbox gap={mobile ? 2 : 8} style={{ overflow: 'hidden', width: '100%' }}>
112
+ <Flexbox gap={2} style={{ overflow: 'hidden', width: '100%' }}>
119
113
  <Paragraph className={styles.cardTitle} ellipsis={{ rows: 1 }}>
120
114
  {item.meta.title}
121
115
  </Paragraph>
@@ -123,7 +117,7 @@ const AgentsSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
123
117
  {item.meta.description}
124
118
  </Paragraph>
125
119
  </Flexbox>
126
- </Flexbox>
120
+ </Block>
127
121
  </Link>
128
122
  ))}
129
123
  </Grid>
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { ActionIcon } from '@lobehub/ui';
3
+ import { ActionIcon, Block } from '@lobehub/ui';
4
4
  import { createStyles } from 'antd-style';
5
5
  import { shuffle } from 'lodash-es';
6
6
  import { ArrowRight } from 'lucide-react';
@@ -16,8 +16,6 @@ import { useChatStore } from '@/store/chat';
16
16
 
17
17
  const useStyles = createStyles(({ css, token, responsive }) => ({
18
18
  card: css`
19
- cursor: pointer;
20
-
21
19
  padding-block: 12px;
22
20
  padding-inline: 24px;
23
21
  border-radius: 48px;
@@ -26,10 +24,6 @@ const useStyles = createStyles(({ css, token, responsive }) => ({
26
24
 
27
25
  background: ${token.colorBgContainer};
28
26
 
29
- &:hover {
30
- background: ${token.colorBgElevated};
31
- }
32
-
33
27
  ${responsive.mobile} {
34
28
  padding-block: 8px;
35
29
  padding-inline: 16px;
@@ -75,7 +69,7 @@ const QuestionSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
75
69
  <Link href={USAGE_DOCUMENTS} target={'_blank'}>
76
70
  <ActionIcon
77
71
  icon={ArrowRight}
78
- size={{ blockSize: 24, fontSize: 16 }}
72
+ size={{ blockSize: 24, size: 16 }}
79
73
  title={t('guide.questions.moreBtn')}
80
74
  />
81
75
  </Link>
@@ -84,9 +78,10 @@ const QuestionSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
84
78
  {qa.slice(0, mobile ? 2 : 5).map((item) => {
85
79
  const text = t(`guide.qa.${item}` as any, { appName: BRANDING_NAME });
86
80
  return (
87
- <Flexbox
81
+ <Block
88
82
  align={'center'}
89
83
  className={styles.card}
84
+ clickable
90
85
  gap={8}
91
86
  horizontal
92
87
  key={item}
@@ -94,9 +89,10 @@ const QuestionSuggest = memo<{ mobile?: boolean }>(({ mobile }) => {
94
89
  updateInputMessage(text);
95
90
  sendMessage({ isWelcomeQuestion: true });
96
91
  }}
92
+ variant={'outlined'}
97
93
  >
98
94
  {t(text)}
99
- </Flexbox>
95
+ </Block>
100
96
  );
101
97
  })}
102
98
  </Flexbox>
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import { Block } from '@lobehub/ui';
3
4
  import { createStyles } from 'antd-style';
4
5
  import { memo } from 'react';
5
6
  import { useTranslation } from 'react-i18next';
@@ -10,20 +11,11 @@ import { useChatStore } from '@/store/chat';
10
11
 
11
12
  const useStyles = createStyles(({ css, token, responsive }) => ({
12
13
  card: css`
13
- cursor: pointer;
14
-
15
- padding-block: 12px;
16
- padding-inline: 24px;
14
+ padding-block: 8px;
15
+ padding-inline: 16px;
17
16
  border-radius: 48px;
18
-
19
- color: ${token.colorText};
20
-
21
17
  background: ${token.colorBgContainer};
22
18
 
23
- &:hover {
24
- background: ${token.colorBgElevated};
25
- }
26
-
27
19
  ${responsive.mobile} {
28
20
  padding-block: 8px;
29
21
  padding-inline: 16px;
@@ -32,7 +24,7 @@ const useStyles = createStyles(({ css, token, responsive }) => ({
32
24
 
33
25
  container: css`
34
26
  padding-block: 0;
35
- padding-inline: 20px;
27
+ padding-inline: 64px 16px;
36
28
  `,
37
29
 
38
30
  title: css`
@@ -58,16 +50,20 @@ const OpeningQuestions = memo<OpeningQuestionsProps>(({ mobile, questions }) =>
58
50
  <Flexbox gap={8} horizontal wrap={'wrap'}>
59
51
  {questions.slice(0, mobile ? 2 : 5).map((question) => {
60
52
  return (
61
- <div
53
+ <Block
62
54
  className={styles.card}
55
+ clickable
63
56
  key={question}
64
57
  onClick={() => {
65
58
  updateInputMessage(question);
66
59
  sendMessage({ isWelcomeQuestion: true });
67
60
  }}
61
+ paddingBlock={8}
62
+ paddingInline={12}
63
+ variant={'outlined'}
68
64
  >
69
65
  {question}
70
- </div>
66
+ </Block>
71
67
  );
72
68
  })}
73
69
  </Flexbox>
@@ -1,4 +1,4 @@
1
- import { ChatItem } from '@lobehub/ui';
1
+ import { ChatItem } from '@lobehub/ui/chat';
2
2
  import isEqual from 'fast-deep-equal';
3
3
  import React, { useMemo } from 'react';
4
4
  import { useTranslation } from 'react-i18next';
@@ -45,7 +45,7 @@ const WelcomeMessage = () => {
45
45
  editing={false}
46
46
  message={message}
47
47
  placement={'left'}
48
- type={type === 'chat' ? 'block' : 'pure'}
48
+ variant={type === 'chat' ? 'bubble' : 'docs'}
49
49
  />
50
50
  );
51
51
 
@@ -43,7 +43,8 @@ const useStyles = createStyles(({ css, token }) => ({
43
43
  `,
44
44
 
45
45
  text: css`
46
- font-size: ${token.fontSizeLG}px;
46
+ font-size: 16px;
47
+ font-weight: 500;
47
48
  color: ${token.colorBgBase};
48
49
  `,
49
50
 
@@ -51,8 +52,8 @@ const useStyles = createStyles(({ css, token }) => ({
51
52
  display: flex;
52
53
  align-items: center;
53
54
 
54
- padding-block: 12px;
55
- padding-inline: 16px;
55
+ padding-block: 8px;
56
+ padding-inline: 24px;
56
57
  border-radius: 9999px;
57
58
 
58
59
  background: ${token.colorText};
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { ActionIcon, Icon } from '@lobehub/ui';
4
- import { App, Dropdown, MenuProps } from 'antd';
3
+ import { ActionIcon, Dropdown, Icon, type MenuProps } from '@lobehub/ui';
4
+ import { App } from 'antd';
5
5
  import type { ItemType } from 'antd/es/menu/interface';
6
6
  import { LucideCheck, MoreHorizontal, Search, Trash } from 'lucide-react';
7
7
  import { memo, useMemo, useState } from 'react';