@lobehub/lobehub 2.0.0-next.331 → 2.0.0-next.333

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 (277) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/apps/desktop/src/main/const/dir.ts +3 -0
  3. package/apps/desktop/src/main/controllers/SystemCtr.ts +19 -0
  4. package/apps/desktop/src/main/controllers/__tests__/SystemCtr.test.ts +1 -0
  5. package/apps/desktop/src/main/menus/impls/macOS.test.ts +1 -0
  6. package/changelog/v1.json +21 -0
  7. package/docs/changelog/2023-09-09-plugin-system.mdx +3 -2
  8. package/docs/changelog/2023-11-14-gpt4-vision.mdx +6 -4
  9. package/docs/changelog/2023-11-19-tts-stt.mdx +3 -2
  10. package/docs/changelog/2023-12-22-dalle-3.mdx +5 -2
  11. package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +2 -2
  12. package/docs/changelog/2024-02-08-sso-oauth.mdx +2 -2
  13. package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +3 -2
  14. package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +2 -2
  15. package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +3 -2
  16. package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +2 -2
  17. package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +3 -2
  18. package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +5 -4
  19. package/docs/changelog/2024-09-13-openai-o1-models.mdx +2 -2
  20. package/docs/changelog/2024-09-20-artifacts.mdx +3 -2
  21. package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +2 -2
  22. package/docs/changelog/2024-10-27-pin-assistant.mdx +3 -2
  23. package/docs/changelog/2024-11-06-share-text-json.mdx +4 -2
  24. package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +2 -2
  25. package/docs/changelog/2024-11-25-november-providers.mdx +2 -2
  26. package/docs/changelog/2024-11-27-forkable-chat.mdx +2 -2
  27. package/docs/changelog/2025-01-03-user-profile.mdx +2 -2
  28. package/docs/changelog/2025-01-22-new-ai-provider.mdx +2 -2
  29. package/docs/changelog/2025-02-02-deepseek-r1.mdx +4 -4
  30. package/docs/development/basic/add-new-authentication-providers.mdx +4 -0
  31. package/docs/development/basic/add-new-authentication-providers.zh-CN.mdx +4 -0
  32. package/docs/development/basic/add-new-image-model.mdx +4 -0
  33. package/docs/development/basic/add-new-image-model.zh-CN.mdx +4 -0
  34. package/docs/development/basic/architecture.mdx +4 -0
  35. package/docs/development/basic/architecture.zh-CN.mdx +4 -0
  36. package/docs/development/basic/chat-api.mdx +4 -0
  37. package/docs/development/basic/chat-api.zh-CN.mdx +4 -0
  38. package/docs/development/basic/comfyui-development.mdx +3 -1
  39. package/docs/development/basic/contributing-guidelines.mdx +4 -0
  40. package/docs/development/basic/contributing-guidelines.zh-CN.mdx +4 -0
  41. package/docs/development/basic/feature-development-frontend.mdx +11 -3
  42. package/docs/development/basic/feature-development-frontend.zh-CN.mdx +11 -3
  43. package/docs/development/basic/feature-development.mdx +14 -5
  44. package/docs/development/basic/feature-development.zh-CN.mdx +14 -5
  45. package/docs/development/basic/folder-structure.mdx +7 -0
  46. package/docs/development/basic/folder-structure.zh-CN.mdx +7 -0
  47. package/docs/development/basic/resources.mdx +4 -0
  48. package/docs/development/basic/resources.zh-CN.mdx +4 -0
  49. package/docs/development/basic/setup-development.mdx +4 -0
  50. package/docs/development/basic/setup-development.zh-CN.mdx +4 -0
  51. package/docs/development/basic/test.mdx +4 -0
  52. package/docs/development/basic/test.zh-CN.mdx +4 -0
  53. package/docs/development/basic/work-with-server-side-database.mdx +5 -5
  54. package/docs/development/basic/work-with-server-side-database.zh-CN.mdx +5 -5
  55. package/docs/development/internationalization/add-new-locale.mdx +4 -0
  56. package/docs/development/internationalization/add-new-locale.zh-CN.mdx +4 -0
  57. package/docs/development/internationalization/internationalization-implementation.mdx +4 -0
  58. package/docs/development/internationalization/internationalization-implementation.zh-CN.mdx +4 -0
  59. package/docs/development/others/lighthouse.mdx +4 -0
  60. package/docs/development/others/lighthouse.zh-CN.mdx +4 -0
  61. package/docs/development/start.mdx +4 -0
  62. package/docs/development/start.zh-CN.mdx +4 -0
  63. package/docs/development/state-management/state-management-intro.mdx +4 -2
  64. package/docs/development/state-management/state-management-intro.zh-CN.mdx +4 -2
  65. package/docs/development/state-management/state-management-selectors.mdx +6 -1
  66. package/docs/development/state-management/state-management-selectors.zh-CN.mdx +6 -1
  67. package/docs/development/tests/integration-testing.zh-CN.mdx +4 -0
  68. package/docs/self-hosting/advanced/analytics.mdx +2 -2
  69. package/docs/self-hosting/advanced/auth/better-auth/apple.mdx +132 -0
  70. package/docs/self-hosting/advanced/auth/better-auth/apple.zh-CN.mdx +127 -0
  71. package/docs/self-hosting/advanced/auth/better-auth/auth0.mdx +111 -0
  72. package/docs/self-hosting/advanced/auth/better-auth/auth0.zh-CN.mdx +107 -0
  73. package/docs/self-hosting/advanced/auth/better-auth/authelia.mdx +66 -0
  74. package/docs/self-hosting/advanced/auth/better-auth/authelia.zh-CN.mdx +62 -0
  75. package/docs/self-hosting/advanced/auth/better-auth/authentik.mdx +67 -0
  76. package/docs/self-hosting/advanced/auth/better-auth/authentik.zh-CN.mdx +63 -0
  77. package/docs/self-hosting/advanced/auth/better-auth/casdoor.mdx +62 -0
  78. package/docs/self-hosting/advanced/auth/better-auth/casdoor.zh-CN.mdx +58 -0
  79. package/docs/self-hosting/advanced/auth/better-auth/cloudflare-zero-trust.mdx +59 -0
  80. package/docs/self-hosting/advanced/auth/better-auth/cloudflare-zero-trust.zh-CN.mdx +55 -0
  81. package/docs/self-hosting/advanced/auth/better-auth/cognito.mdx +88 -0
  82. package/docs/self-hosting/advanced/auth/better-auth/cognito.zh-CN.mdx +85 -0
  83. package/docs/self-hosting/advanced/auth/better-auth/feishu.mdx +73 -0
  84. package/docs/self-hosting/advanced/auth/better-auth/feishu.zh-CN.mdx +69 -0
  85. package/docs/self-hosting/advanced/auth/better-auth/generic-oidc.mdx +86 -0
  86. package/docs/self-hosting/advanced/auth/better-auth/generic-oidc.zh-CN.mdx +83 -0
  87. package/docs/self-hosting/advanced/auth/better-auth/github.mdx +93 -0
  88. package/docs/self-hosting/advanced/auth/better-auth/github.zh-CN.mdx +90 -0
  89. package/docs/self-hosting/advanced/auth/better-auth/google.mdx +80 -0
  90. package/docs/self-hosting/advanced/auth/better-auth/google.zh-CN.mdx +77 -0
  91. package/docs/self-hosting/advanced/auth/better-auth/keycloak.mdx +77 -0
  92. package/docs/self-hosting/advanced/auth/better-auth/keycloak.zh-CN.mdx +74 -0
  93. package/docs/self-hosting/advanced/auth/better-auth/logto.mdx +64 -0
  94. package/docs/self-hosting/advanced/auth/better-auth/logto.zh-CN.mdx +60 -0
  95. package/docs/self-hosting/advanced/auth/better-auth/microsoft.mdx +113 -0
  96. package/docs/self-hosting/advanced/auth/better-auth/microsoft.zh-CN.mdx +109 -0
  97. package/docs/self-hosting/advanced/auth/better-auth/okta.mdx +67 -0
  98. package/docs/self-hosting/advanced/auth/better-auth/okta.zh-CN.mdx +63 -0
  99. package/docs/self-hosting/advanced/auth/better-auth/wechat.mdx +77 -0
  100. package/docs/self-hosting/advanced/auth/better-auth/wechat.zh-CN.mdx +72 -0
  101. package/docs/self-hosting/advanced/auth/better-auth/zitadel.mdx +73 -0
  102. package/docs/self-hosting/advanced/auth/better-auth/zitadel.zh-CN.mdx +69 -0
  103. package/docs/self-hosting/advanced/auth/clerk.mdx +2 -2
  104. package/docs/self-hosting/advanced/auth/legacy.mdx +106 -0
  105. package/docs/self-hosting/advanced/auth/legacy.zh-CN.mdx +101 -0
  106. package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +3 -2
  107. package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +3 -2
  108. package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +3 -2
  109. package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +5 -2
  110. package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +2 -0
  111. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +3 -2
  112. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +2 -2
  113. package/docs/self-hosting/advanced/auth/next-auth/github.mdx +3 -2
  114. package/docs/self-hosting/advanced/auth/next-auth/google.mdx +10 -12
  115. package/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx +3 -2
  116. package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +2 -2
  117. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +3 -2
  118. package/docs/self-hosting/advanced/auth/next-auth/okta.mdx +3 -2
  119. package/docs/self-hosting/advanced/auth/next-auth/okta.zh-CN.mdx +1 -3
  120. package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +2 -2
  121. package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +3 -2
  122. package/docs/self-hosting/advanced/auth.mdx +86 -139
  123. package/docs/self-hosting/advanced/auth.zh-CN.mdx +84 -135
  124. package/docs/self-hosting/advanced/desktop.mdx +9 -3
  125. package/docs/self-hosting/advanced/desktop.zh-CN.mdx +9 -3
  126. package/docs/self-hosting/advanced/feature-flags.mdx +3 -2
  127. package/docs/self-hosting/advanced/knowledge-base.mdx +2 -2
  128. package/docs/self-hosting/advanced/model-list.mdx +2 -2
  129. package/docs/self-hosting/advanced/observability/grafana.mdx +4 -2
  130. package/docs/self-hosting/advanced/observability/grafana.zh-CN.mdx +2 -1
  131. package/docs/self-hosting/advanced/observability/langfuse.mdx +3 -2
  132. package/docs/self-hosting/advanced/online-search.mdx +4 -6
  133. package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +2 -2
  134. package/docs/self-hosting/advanced/settings-url-share.mdx +3 -2
  135. package/docs/self-hosting/advanced/upstream-sync.mdx +3 -4
  136. package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +0 -2
  137. package/docs/self-hosting/environment-variables/analytics.mdx +3 -2
  138. package/docs/self-hosting/environment-variables/auth.mdx +5 -12
  139. package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +2 -9
  140. package/docs/self-hosting/environment-variables/basic.mdx +3 -10
  141. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +0 -7
  142. package/docs/self-hosting/environment-variables/model-provider.mdx +3 -4
  143. package/docs/self-hosting/environment-variables/s3.mdx +2 -2
  144. package/docs/self-hosting/environment-variables.mdx +2 -3
  145. package/docs/self-hosting/examples/azure-openai.mdx +2 -3
  146. package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +0 -1
  147. package/docs/self-hosting/examples/ollama.mdx +3 -2
  148. package/docs/self-hosting/faq/no-v1-suffix.mdx +4 -4
  149. package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +3 -2
  150. package/docs/self-hosting/faq/vercel-ai-image-timeout.mdx +2 -2
  151. package/docs/self-hosting/migration/v2/breaking-changes.mdx +73 -0
  152. package/docs/self-hosting/migration/v2/breaking-changes.zh-CN.mdx +71 -0
  153. package/docs/self-hosting/platform/alibaba-cloud.mdx +2 -7
  154. package/docs/self-hosting/platform/alibaba-cloud.zh-CN.mdx +1 -6
  155. package/docs/self-hosting/platform/btpanel.mdx +4 -2
  156. package/docs/self-hosting/platform/btpanel.zh-CN.mdx +2 -2
  157. package/docs/self-hosting/platform/docker-compose.mdx +3 -3
  158. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +0 -1
  159. package/docs/self-hosting/platform/docker.mdx +2 -11
  160. package/docs/self-hosting/platform/docker.zh-CN.mdx +0 -8
  161. package/docs/self-hosting/platform/netlify.mdx +5 -17
  162. package/docs/self-hosting/platform/netlify.zh-CN.mdx +3 -17
  163. package/docs/self-hosting/platform/railway.mdx +3 -7
  164. package/docs/self-hosting/platform/railway.zh-CN.mdx +1 -7
  165. package/docs/self-hosting/platform/repocloud.mdx +3 -7
  166. package/docs/self-hosting/platform/repocloud.zh-CN.mdx +1 -6
  167. package/docs/self-hosting/platform/sealos.mdx +2 -7
  168. package/docs/self-hosting/platform/sealos.zh-CN.mdx +1 -6
  169. package/docs/self-hosting/platform/tencentcloud-lighthouse.mdx +2 -7
  170. package/docs/self-hosting/platform/tencentcloud-lighthouse.zh-CN.mdx +1 -6
  171. package/docs/self-hosting/platform/vercel.mdx +4 -9
  172. package/docs/self-hosting/platform/vercel.zh-CN.mdx +3 -8
  173. package/docs/self-hosting/platform/zeabur.mdx +2 -11
  174. package/docs/self-hosting/platform/zeabur.zh-CN.mdx +1 -10
  175. package/docs/self-hosting/server-database/docker-compose.mdx +11 -19
  176. package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +12 -21
  177. package/docs/self-hosting/server-database/docker.mdx +9 -24
  178. package/docs/self-hosting/server-database/docker.zh-CN.mdx +7 -24
  179. package/docs/self-hosting/server-database/dokploy.mdx +27 -25
  180. package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +23 -21
  181. package/docs/self-hosting/server-database/netlify.mdx +2 -2
  182. package/docs/self-hosting/server-database/netlify.zh-CN.mdx +2 -2
  183. package/docs/self-hosting/server-database/railway.mdx +2 -2
  184. package/docs/self-hosting/server-database/repocloud.mdx +2 -2
  185. package/docs/self-hosting/server-database/sealos.mdx +2 -2
  186. package/docs/self-hosting/server-database/vercel.mdx +19 -72
  187. package/docs/self-hosting/server-database/vercel.zh-CN.mdx +17 -68
  188. package/docs/self-hosting/server-database/zeabur.mdx +2 -2
  189. package/docs/self-hosting/server-database.mdx +1 -19
  190. package/docs/self-hosting/server-database.zh-CN.mdx +0 -17
  191. package/docs/self-hosting/start.mdx +2 -2
  192. package/docs/self-hosting/start.zh-CN.mdx +2 -2
  193. package/e2e/src/support/webServer.ts +95 -43
  194. package/locales/ar/chat.json +5 -0
  195. package/locales/ar/desktop-onboarding.json +5 -0
  196. package/locales/ar/discover.json +15 -0
  197. package/locales/ar/models.json +35 -0
  198. package/locales/bg-BG/chat.json +5 -0
  199. package/locales/bg-BG/desktop-onboarding.json +5 -0
  200. package/locales/bg-BG/discover.json +15 -0
  201. package/locales/bg-BG/models.json +30 -0
  202. package/locales/de-DE/chat.json +5 -0
  203. package/locales/de-DE/desktop-onboarding.json +5 -0
  204. package/locales/de-DE/discover.json +15 -0
  205. package/locales/de-DE/models.json +38 -0
  206. package/locales/en-US/desktop-onboarding.json +6 -0
  207. package/locales/en-US/discover.json +14 -0
  208. package/locales/es-ES/chat.json +5 -0
  209. package/locales/es-ES/desktop-onboarding.json +5 -0
  210. package/locales/es-ES/discover.json +15 -0
  211. package/locales/es-ES/models.json +38 -0
  212. package/locales/fa-IR/chat.json +5 -0
  213. package/locales/fa-IR/desktop-onboarding.json +5 -0
  214. package/locales/fa-IR/discover.json +15 -0
  215. package/locales/fa-IR/models.json +11 -0
  216. package/locales/fr-FR/chat.json +5 -0
  217. package/locales/fr-FR/desktop-onboarding.json +5 -0
  218. package/locales/fr-FR/discover.json +15 -0
  219. package/locales/fr-FR/models.json +36 -0
  220. package/locales/it-IT/chat.json +5 -0
  221. package/locales/it-IT/desktop-onboarding.json +5 -0
  222. package/locales/it-IT/discover.json +15 -0
  223. package/locales/it-IT/models.json +32 -0
  224. package/locales/ja-JP/chat.json +5 -0
  225. package/locales/ja-JP/desktop-onboarding.json +5 -0
  226. package/locales/ja-JP/discover.json +15 -0
  227. package/locales/ja-JP/models.json +42 -0
  228. package/locales/ko-KR/chat.json +5 -0
  229. package/locales/ko-KR/desktop-onboarding.json +5 -0
  230. package/locales/ko-KR/discover.json +15 -0
  231. package/locales/ko-KR/models.json +55 -0
  232. package/locales/nl-NL/chat.json +5 -0
  233. package/locales/nl-NL/desktop-onboarding.json +5 -0
  234. package/locales/nl-NL/discover.json +15 -0
  235. package/locales/nl-NL/models.json +34 -0
  236. package/locales/pl-PL/chat.json +5 -0
  237. package/locales/pl-PL/desktop-onboarding.json +5 -0
  238. package/locales/pl-PL/discover.json +15 -0
  239. package/locales/pl-PL/models.json +31 -0
  240. package/locales/pt-BR/chat.json +5 -0
  241. package/locales/pt-BR/desktop-onboarding.json +5 -0
  242. package/locales/pt-BR/discover.json +15 -0
  243. package/locales/pt-BR/models.json +42 -0
  244. package/locales/ru-RU/chat.json +5 -0
  245. package/locales/ru-RU/desktop-onboarding.json +5 -0
  246. package/locales/ru-RU/discover.json +15 -0
  247. package/locales/ru-RU/models.json +32 -0
  248. package/locales/tr-TR/chat.json +5 -0
  249. package/locales/tr-TR/desktop-onboarding.json +5 -0
  250. package/locales/tr-TR/discover.json +15 -0
  251. package/locales/tr-TR/models.json +48 -0
  252. package/locales/vi-VN/chat.json +5 -0
  253. package/locales/vi-VN/desktop-onboarding.json +5 -0
  254. package/locales/vi-VN/discover.json +15 -0
  255. package/locales/vi-VN/models.json +36 -0
  256. package/locales/zh-CN/desktop-onboarding.json +4 -3
  257. package/locales/zh-CN/discover.json +14 -0
  258. package/locales/zh-CN/models.json +1 -0
  259. package/locales/zh-TW/chat.json +5 -0
  260. package/locales/zh-TW/desktop-onboarding.json +5 -0
  261. package/locales/zh-TW/discover.json +15 -0
  262. package/locales/zh-TW/models.json +42 -0
  263. package/package.json +2 -2
  264. package/packages/builtin-tool-cloud-sandbox/src/systemRole.ts +62 -2
  265. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/index.ts +2 -0
  266. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/multi-tasks-with-summary.json +234 -0
  267. package/packages/conversation-flow/src/__tests__/parse.test.ts +25 -0
  268. package/packages/conversation-flow/src/transformation/ContextTreeBuilder.ts +15 -0
  269. package/packages/conversation-flow/src/transformation/FlatListBuilder.ts +20 -0
  270. package/packages/types/src/serverConfig.ts +0 -1
  271. package/src/app/[variants]/(desktop)/desktop-onboarding/features/LoginStep.tsx +39 -1
  272. package/src/app/[variants]/(main)/settings/common/features/Common/Common.tsx +34 -14
  273. package/src/envs/app.ts +0 -13
  274. package/src/locales/default/desktop-onboarding.ts +1 -0
  275. package/src/server/globalConfig/index.ts +1 -2
  276. package/src/services/electron/system.ts +4 -0
  277. package/src/store/serverConfig/selectors.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,66 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.333](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.332...v2.0.0-next.333)
6
+
7
+ <sup>Released on **2026-01-21**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **desktop**: Add legacy local database detection and migration guidance.
12
+ - **misc**: Update the sandbox preinstall libs in sys role.
13
+
14
+ #### 🐛 Bug Fixes
15
+
16
+ - **misc**: Fix multi tasks no summary issue.
17
+
18
+ <br/>
19
+
20
+ <details>
21
+ <summary><kbd>Improvements and Fixes</kbd></summary>
22
+
23
+ #### What's improved
24
+
25
+ - **desktop**: Add legacy local database detection and migration guidance, closes [#11682](https://github.com/lobehub/lobe-chat/issues/11682) ([5664b84](https://github.com/lobehub/lobe-chat/commit/5664b84))
26
+ - **misc**: Update the sandbox preinstall libs in sys role, closes [#11688](https://github.com/lobehub/lobe-chat/issues/11688) ([404c577](https://github.com/lobehub/lobe-chat/commit/404c577))
27
+
28
+ #### What's fixed
29
+
30
+ - **misc**: Fix multi tasks no summary issue, closes [#11685](https://github.com/lobehub/lobe-chat/issues/11685) ([26ce317](https://github.com/lobehub/lobe-chat/commit/26ce317))
31
+
32
+ </details>
33
+
34
+ <div align="right">
35
+
36
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
37
+
38
+ </div>
39
+
40
+ ## [Version 2.0.0-next.332](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.331...v2.0.0-next.332)
41
+
42
+ <sup>Released on **2026-01-21**</sup>
43
+
44
+ #### 🐛 Bug Fixes
45
+
46
+ - **misc**: Improve e2e server and complete i18n resources.
47
+
48
+ <br/>
49
+
50
+ <details>
51
+ <summary><kbd>Improvements and Fixes</kbd></summary>
52
+
53
+ #### What's fixed
54
+
55
+ - **misc**: Improve e2e server and complete i18n resources, closes [#11678](https://github.com/lobehub/lobe-chat/issues/11678) ([d450dd9](https://github.com/lobehub/lobe-chat/commit/d450dd9))
56
+
57
+ </details>
58
+
59
+ <div align="right">
60
+
61
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
62
+
63
+ </div>
64
+
5
65
  ## [Version 2.0.0-next.331](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.330...v2.0.0-next.331)
6
66
 
7
67
  <sup>Released on **2026-01-21**</sup>
@@ -23,6 +23,9 @@ export const userDataDir = app.getPath('userData');
23
23
 
24
24
  export const appStorageDir = join(userDataDir, 'lobehub-storage');
25
25
 
26
+ // Legacy local database directory used in older desktop versions
27
+ export const legacyLocalDbDir = join(appStorageDir, 'lobehub-local-db');
28
+
26
29
  // ------ Application storage directory ---- //
27
30
 
28
31
  // Local storage files (simulating S3)
@@ -1,8 +1,10 @@
1
1
  import { ElectronAppState, ThemeMode } from '@lobechat/electron-client-ipc';
2
2
  import { app, dialog, nativeTheme, shell } from 'electron';
3
3
  import { macOS } from 'electron-is';
4
+ import { pathExists, readdir } from 'fs-extra';
4
5
  import process from 'node:process';
5
6
 
7
+ import { legacyLocalDbDir } from '@/const/dir';
6
8
  import { createLogger } from '@/utils/logger';
7
9
  import {
8
10
  getAccessibilityStatus,
@@ -214,6 +216,23 @@ export default class SystemController extends ControllerModule {
214
216
  return nativeTheme.themeSource;
215
217
  }
216
218
 
219
+ /**
220
+ * Detect whether user used the legacy local database in older desktop versions.
221
+ * Legacy path: {app.getPath('userData')}/lobehub-storage/lobehub-local-db
222
+ */
223
+ @IpcMethod()
224
+ async hasLegacyLocalDb(): Promise<boolean> {
225
+ if (!(await pathExists(legacyLocalDbDir))) return false;
226
+
227
+ try {
228
+ const entries = await readdir(legacyLocalDbDir);
229
+ return entries.length > 0;
230
+ } catch {
231
+ // If directory exists but cannot be read, treat as "used" to surface guidance.
232
+ return true;
233
+ }
234
+ }
235
+
217
236
  private async setSystemThemeMode(themeMode: ThemeMode) {
218
237
  nativeTheme.themeSource = themeMode;
219
238
  }
@@ -56,6 +56,7 @@ vi.mock('@/utils/logger', () => ({
56
56
  // Mock electron
57
57
  vi.mock('electron', () => ({
58
58
  app: {
59
+ getAppPath: vi.fn(() => '/mock/app/path'),
59
60
  getLocale: vi.fn(() => 'en-US'),
60
61
  getPath: vi.fn((name: string) => `/mock/path/${name}`),
61
62
  },
@@ -13,6 +13,7 @@ vi.mock('electron', () => ({
13
13
  setApplicationMenu: vi.fn(),
14
14
  },
15
15
  app: {
16
+ getAppPath: vi.fn(() => '/mock/app/path'),
16
17
  getName: vi.fn(() => 'LobeChat'),
17
18
  getPath: vi.fn((type: string) => {
18
19
  if (type === 'logs') return '/path/to/logs';
package/changelog/v1.json CHANGED
@@ -1,4 +1,25 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "features": [
5
+ "Update the sandbox preinstall libs in sys role."
6
+ ],
7
+ "fixes": [
8
+ "Fix multi tasks no summary issue."
9
+ ]
10
+ },
11
+ "date": "2026-01-21",
12
+ "version": "2.0.0-next.333"
13
+ },
14
+ {
15
+ "children": {
16
+ "fixes": [
17
+ "Improve e2e server and complete i18n resources."
18
+ ]
19
+ },
20
+ "date": "2026-01-21",
21
+ "version": "2.0.0-next.332"
22
+ },
2
23
  {
3
24
  "children": {
4
25
  "fixes": [
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Plugin Ecosystem - Functionality Extensions and Development Resources
3
3
  description: >-
4
- Discover how the LobeChat plugin ecosystem enhances the utility and flexibility of the LobeChat assistant, along with the development resources and plugin development guidelines provided.
5
-
4
+ Discover how the LobeChat plugin ecosystem enhances the utility and
5
+ flexibility of the LobeChat assistant, along with the development resources
6
+ and plugin development guidelines provided.
6
7
  tags:
7
8
  - LobeChat
8
9
  - Plugins
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  title: >-
3
- LobeChat Supports Multimodal Interaction: Visual Recognition Enhances Intelligent Dialogue
4
-
3
+ LobeChat Supports Multimodal Interaction: Visual Recognition Enhances
4
+ Intelligent Dialogue
5
5
  description: >-
6
- LobeChat supports various large language models with visual recognition capabilities, allowing users to upload or drag and drop images. The assistant will recognize the content and engage in intelligent dialogue, creating a more intelligent and diverse chat environment.
7
-
6
+ LobeChat supports various large language models with visual recognition
7
+ capabilities, allowing users to upload or drag and drop images. The assistant
8
+ will recognize the content and engage in intelligent dialogue, creating a more
9
+ intelligent and diverse chat environment.
8
10
  tags:
9
11
  - Visual Recognition
10
12
  - LobeChat
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Text-to-Image Generation Technology
3
3
  description: >-
4
- LobeChat supports Text-to-Speech (TTS) and Speech-to-Text (STT) technologies, offering high-quality voice options for a personalized communication experience. Learn more about Lobe TTS Toolkit.
5
-
4
+ LobeChat supports Text-to-Speech (TTS) and Speech-to-Text (STT) technologies,
5
+ offering high-quality voice options for a personalized communication
6
+ experience. Learn more about Lobe TTS Toolkit.
6
7
  tags:
7
8
  - TTS
8
9
  - STT
@@ -1,8 +1,11 @@
1
1
  ---
2
2
  title: 'LobeChat Text-to-Image: Text-to-Image Generation Technology'
3
3
  description: >-
4
- LobeChat now supports the latest text-to-image generation technology, allowing users to directly invoke the text-to-image tool during conversations with the assistant for creative purposes. By utilizing AI tools such as DALL-E 3, MidJourney, and Pollinations, assistants can turn your ideas into images, making the creative process more intimate and immersive.
5
-
4
+ LobeChat now supports the latest text-to-image generation technology, allowing
5
+ users to directly invoke the text-to-image tool during conversations with the
6
+ assistant for creative purposes. By utilizing AI tools such as DALL-E 3,
7
+ MidJourney, and Pollinations, assistants can turn your ideas into images,
8
+ making the creative process more intimate and immersive.
6
9
  tags:
7
10
  - Text-to-Image
8
11
  - LobeChat
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat 文生图:文本转图片生成技术
3
3
  description: >-
4
- LobeChat 现在支持最新的文本到图片生成技术,让用户可以在与助手对话中直接调用文生图工具进行创作。利用 DALL-E 3、MidJourney 和 Pollinations 等 AI 工具,助手们可以将你的想法转化为图像,让创作过程更私密和沉浸式。
5
-
4
+ LobeChat 现在支持最新的文本到图片生成技术,让用户可以在与助手对话中直接调用文生图工具进行创作。利用 DALL-E 3、MidJourney 和
5
+ Pollinations 等 AI 工具,助手们可以将你的想法转化为图像,让创作过程更私密和沉浸式。
6
6
  tags:
7
7
  - Text to Image
8
8
  - 文生图
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat Supports Multi-User Management with Clerk and Next-Auth
3
3
  description: >-
4
- LobeChat offers various user authentication and management solutions, including Clerk and Next-Auth, to meet the diverse needs of different users.
5
-
4
+ LobeChat offers various user authentication and management solutions,
5
+ including Clerk and Next-Auth, to meet the diverse needs of different users.
6
6
  tags:
7
7
  - User Management
8
8
  - Next-Auth
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: 'LobeChat 1.0: New Architecture and New Possibilities'
3
3
  description: >-
4
- LobeChat 1.0 brings a brand-new architecture and features for server-side databases and user authentication management, opening up new possibilities. On this basis, LobeChat Cloud has entered beta testing.
5
-
4
+ LobeChat 1.0 brings a brand-new architecture and features for server-side
5
+ databases and user authentication management, opening up new possibilities. On
6
+ this basis, LobeChat Cloud has entered beta testing.
6
7
  tags:
7
8
  - LobeChat
8
9
  - Version 1.0
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat 1.0:新的架构与新的可能
3
3
  description: >-
4
- LobeChat 1.0 带来了服务端数据库、用户鉴权管理的全新架构与特性,开启了新的可能 。在此基础上, LobeChat Cloud 开启 Beta 版测试。
5
-
4
+ LobeChat 1.0 带来了服务端数据库、用户鉴权管理的全新架构与特性,开启了新的可能 。在此基础上, LobeChat Cloud 开启 Beta
5
+ 版测试。
6
6
  tags:
7
7
  - LobeChat
8
8
  - 服务端数据库
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: 'LobeChat Fully Enters the GPT-4 Era: GPT-4o Mini Officially Launched'
3
3
  description: >-
4
- LobeChat v1.6 has been released with support for GPT-4o mini, while LobeChat Cloud services have been fully upgraded to provide users with a more powerful AI conversation experience.
5
-
4
+ LobeChat v1.6 has been released with support for GPT-4o mini, while LobeChat
5
+ Cloud services have been fully upgraded to provide users with a more powerful
6
+ AI conversation experience.
6
7
  tags:
7
8
  - LobeChat
8
9
  - GPT-4o Mini
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat 全面进入 GPT-4 时代:GPT-4o mini 正式上线
3
3
  description: >-
4
- LobeChat v1.6 重磅发布 GPT-4o mini 支持,同时 LobeChat Cloud 服务全面升级默认模型,为用户带来更强大的 AI 对话体验。
5
-
4
+ LobeChat v1.6 重磅发布 GPT-4o mini 支持,同时 LobeChat Cloud 服务全面升级默认模型,为用户带来更强大的 AI
5
+ 对话体验。
6
6
  tags:
7
7
  - LobeChat
8
8
  - GPT-4o mini
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Database Docker Image Official Release
3
3
  description: >-
4
- LobeChat v1.8.0 launches the official database Docker image, supporting cloud data synchronization and user management, along with comprehensive self-deployment documentation.
5
-
4
+ LobeChat v1.8.0 launches the official database Docker image, supporting cloud
5
+ data synchronization and user management, along with comprehensive
6
+ self-deployment documentation.
6
7
  tags:
7
8
  - LobeChat
8
9
  - Docker Image
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  title: >-
3
- LobeChat Launches Knowledge Base Feature: A New Experience in Intelligent File Management and Dialogue
4
-
3
+ LobeChat Launches Knowledge Base Feature: A New Experience in Intelligent File
4
+ Management and Dialogue
5
5
  description: >-
6
- LobeChat introduces a brand new knowledge base feature that supports all types of file management, intelligent vectorization, and file dialogue, making knowledge management and information retrieval easier and smarter.
7
-
6
+ LobeChat introduces a brand new knowledge base feature that supports all types
7
+ of file management, intelligent vectorization, and file dialogue, making
8
+ knowledge management and information retrieval easier and smarter.
8
9
  tags:
9
10
  - LobeChat
10
11
  - Knowledge Base
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat Perfectly Adapts to OpenAI O1 Series Models
3
3
  description: >-
4
- LobeChat v1.17.0 now supports OpenAI's latest o1-preview and o1-mini models, bringing users enhanced coding and mathematical capabilities.
5
-
4
+ LobeChat v1.17.0 now supports OpenAI's latest o1-preview and o1-mini models,
5
+ bringing users enhanced coding and mathematical capabilities.
6
6
  tags:
7
7
  - OpenAI O1
8
8
  - LobeChat
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: 'Major Update: LobeChat Enters the Era of Artifacts'
3
3
  description: >-
4
- LobeChat v1.19 brings significant updates, including full feature support for Claude Artifacts, a brand new discovery page design, and support for GitHub Models providers, greatly enhancing the capabilities of the AI assistant.
5
-
4
+ LobeChat v1.19 brings significant updates, including full feature support for
5
+ Claude Artifacts, a brand new discovery page design, and support for GitHub
6
+ Models providers, greatly enhancing the capabilities of the AI assistant.
6
7
  tags:
7
8
  - LobeChat
8
9
  - AI Assistant
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: 重磅更新:LobeChat 迎来 Artifacts 时代
3
3
  description: >-
4
- LobeChat v1.19 带来了重大更新,包括 Claude Artifacts 完整特性支持、全新的发现页面设计,以及 GitHub Models 服务商支持,让 AI 助手的能力得到显著提升。
5
-
4
+ LobeChat v1.19 带来了重大更新,包括 Claude Artifacts 完整特性支持、全新的发现页面设计,以及 GitHub Models
5
+ 服务商支持,让 AI 助手的能力得到显著提升。
6
6
  tags:
7
7
  - LobeChat
8
8
  - Artifacts
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Introduces Persistent Assistant Sidebar Feature
3
3
  description: >-
4
- LobeChat v1.26.0 launches the persistent assistant sidebar feature, supporting quick key switching for easy access to frequently used assistants, significantly enhancing efficiency.
5
-
4
+ LobeChat v1.26.0 launches the persistent assistant sidebar feature, supporting
5
+ quick key switching for easy access to frequently used assistants,
6
+ significantly enhancing efficiency.
6
7
  tags:
7
8
  - Persistent Assistant
8
9
  - Sidebar Feature
@@ -1,8 +1,10 @@
1
1
  ---
2
2
  title: LobeChat Supports Sharing Conversations in Text Format (Markdown/JSON)
3
3
  description: >-
4
- LobeChat v1.28.0 introduces support for exporting conversations in Markdown and OpenAI format JSON, making it easy to convert conversation content into note materials, development debugging data, and training corpora, significantly enhancing the reusability of conversation content.
5
-
4
+ LobeChat v1.28.0 introduces support for exporting conversations in Markdown
5
+ and OpenAI format JSON, making it easy to convert conversation content into
6
+ note materials, development debugging data, and training corpora,
7
+ significantly enhancing the reusability of conversation content.
6
8
  tags:
7
9
  - Text Format Export
8
10
  - Markdown Export
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat 支持分享对话为文本格式(Markdown/JSON)
3
3
  description: >-
4
- LobeChat v1.28.0 新增 Markdown 和 OpenAI 格式 JSON 导出支持,让对话内容能轻松转化为笔记素材、开发调试数据和训练语料,显著提升对话内容的复用价值。
5
-
4
+ LobeChat v1.28.0 新增 Markdown 和 OpenAI 格式 JSON
5
+ 导出支持,让对话内容能轻松转化为笔记素材、开发调试数据和训练语料,显著提升对话内容的复用价值。
6
6
  tags:
7
7
  - 对话内容
8
8
  - Markdown导出
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: New Model Providers Added to LobeChat in November
3
3
  description: >-
4
- LobeChat model providers now support Gitee AI, InternLM (ShuSheng PuYu), xAI, and Cloudflare WorkersAI
5
-
4
+ LobeChat model providers now support Gitee AI, InternLM (ShuSheng PuYu), xAI,
5
+ and Cloudflare WorkersAI
6
6
  tags:
7
7
  - LobeChat
8
8
  - AI Model Providers
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat Supports Branching Conversations
3
3
  description: >-
4
- LobeChat now allows you to create new conversation branches from any message, freeing your thoughts.
5
-
4
+ LobeChat now allows you to create new conversation branches from any message,
5
+ freeing your thoughts.
6
6
  tags:
7
7
  - Branching Conversations
8
8
  - LobeChat
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat Supports User Data Statistics and Activity Sharing
3
3
  description: >-
4
- LobeChat now supports multi-dimensional user data statistics and activity sharing
5
-
4
+ LobeChat now supports multi-dimensional user data statistics and activity
5
+ sharing
6
6
  tags:
7
7
  - LobeChat
8
8
  - User Statistics
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  title: LobeChat Launches New AI Provider Management System
3
3
  description: >-
4
- LobeChat has revamped its AI Provider Management System, now supporting custom AI providers and models.
5
-
4
+ LobeChat has revamped its AI Provider Management System, now supporting custom
5
+ AI providers and models.
6
6
  tags:
7
7
  - LobeChat
8
8
  - AI Provider
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  title: >-
3
- LobeChat Integrates DeepSeek R1, Bringing a Revolutionary Chain of Thought Experience
4
-
3
+ LobeChat Integrates DeepSeek R1, Bringing a Revolutionary Chain of Thought
4
+ Experience
5
5
  description: >-
6
- LobeChat v1.49.12 fully supports the DeepSeek R1 model, providing users with an unprecedented interactive experience in the chain of thought.
7
-
6
+ LobeChat v1.49.12 fully supports the DeepSeek R1 model, providing users with
7
+ an unprecedented interactive experience in the chain of thought.
8
8
  tags:
9
9
  - LobeChat
10
10
  - DeepSeek
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: New Authentication Provider Guide
3
+ ---
4
+
1
5
  # New Authentication Provider Guide
2
6
 
3
7
  LobeChat uses [Auth.js v5](https://authjs.dev/) as the external authentication service. Auth.js is an open-source authentication library that provides a simple way to implement authentication and authorization features. This document will introduce how to use Auth.js to implement a new authentication provider.
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: 新身份验证方式开发指南
3
+ ---
4
+
1
5
  # 新身份验证方式开发指南
2
6
 
3
7
  LobeChat 使用 [Auth.js v5](https://authjs.dev/) 作为外部身份验证服务。Auth.js 是一个开源的身份验证库,它提供了一种简单的方式来实现身份验证和授权功能。本文档将介绍如何使用 Auth.js 来实现新的身份验证方式。
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: Adding New Image Models
3
+ ---
4
+
1
5
  # Adding New Image Models
2
6
 
3
7
  > Learn more about the AI image generation modal design in the [AI Image Generation Modal Design Discussion](https://github.com/lobehub/lobe-chat/discussions/7442)
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: 添加新的图像模型
3
+ ---
4
+
1
5
  # 添加新的图像模型
2
6
 
3
7
  > 了解更多关于 AI 绘画模态的设计,请参考 [AI 绘画模态设计讨论](https://github.com/lobehub/lobe-chat/discussions/7442)
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: Architecture Design
3
+ ---
4
+
1
5
  # Architecture Design
2
6
 
3
7
  LobeChat is an AI chat application built on the Next.js framework, aiming to provide an AI productivity platform that enables users to interact with AI through natural language. The following is an overview of the architecture design of LobeChat:
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: 架构设计
3
+ ---
4
+
1
5
  # 架构设计
2
6
 
3
7
  LobeChat 是一个基于 Next.js 框架构建的 AI 聊天应用,旨在提供一个 AI 生产力平台,使用户能够与 AI 进行自然语言交互。以下是 LobeChat 的架构设计介稿:
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: Lobe Chat API Client-Server Interaction Logic
3
+ ---
4
+
1
5
  # Lobe Chat API Client-Server Interaction Logic
2
6
 
3
7
  This document explains the implementation logic of Lobe Chat API in client-server interactions, including event sequences and core components involved.
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: Lobe Chat API 前后端交互逻辑
3
+ ---
4
+
1
5
  # Lobe Chat API 前后端交互逻辑
2
6
 
3
7
  本文档说明了 Lobe Chat API 在前后端交互中的实现逻辑,包括事件序列和涉及的核心组件。
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  title: ComfyUI Extension Development Guide
3
- description: Learn how to add new models, workflows, and features to LobeChat's ComfyUI integration
3
+ description: >-
4
+ Learn how to add new models, workflows, and features to LobeChat's ComfyUI
5
+ integration
4
6
  tags:
5
7
  - ComfyUI
6
8
  - Development Guide
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: Code Style and Contribution Guidelines
3
+ ---
4
+
1
5
  # Code Style and Contribution Guidelines
2
6
 
3
7
  Welcome to the Code Style and Contribution Guidelines for LobeChat. This guide will help you understand our code standards and contribution process, ensuring code consistency and smooth project progression.
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: 代码风格与贡献指南
3
+ ---
4
+
1
5
  # 代码风格与贡献指南
2
6
 
3
7
  欢迎来到 LobeChat 的代码风格与贡献指南。本指南将帮助您理解我们的代码规范和贡献流程,确保代码的一致性和项目的顺利进行。
@@ -1,3 +1,7 @@
1
+ ---
2
+ title: How to Develop a New Feature
3
+ ---
4
+
1
5
  # How to Develop a New Feature
2
6
 
3
7
  LobeChat is built on the Next.js framework and uses TypeScript as the primary development language. When developing a new feature, we need to follow a certain development process to ensure the quality and stability of the code. The general process can be divided into the following five steps:
@@ -76,7 +80,8 @@ const ChatPage = () => {
76
80
  renderItem={(message) => (
77
81
  <List.Item>
78
82
  <Typography.Text>{message.content}</Typography.Text>
79
- </List.Item>
83
+
84
+ </List.Item>
80
85
  )}
81
86
  />
82
87
  );
@@ -86,6 +91,7 @@ export default ChatPage;
86
91
  ```
87
92
 
88
93
  > **Note on Feature Organization**: LobeChat uses two patterns for organizing features:
94
+ >
89
95
  > - **Global features** (`src/features/`): Shared components like `ChatInput`, `Conversation` used across the app
90
96
  > - **Page-specific features** (`src/app/<page>/features/`): Components used only within a specific page route
91
97
  >
@@ -113,11 +119,13 @@ const ChatPage = () => {
113
119
  renderItem={(message) => (
114
120
  <List.Item>
115
121
  <Typography.Text>{message.content}</Typography.Text>
116
- </List.Item>
122
+
123
+ </List.Item>
117
124
  )}
118
125
  />
119
126
  <Button onClick={handleSend}>Send</Button>
120
- </>
127
+
128
+ </>
121
129
  );
122
130
  };
123
131