@lobehub/lobehub 2.1.2 → 2.1.4

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 (174) hide show
  1. package/.env.example +4 -6
  2. package/.env.example.development +0 -3
  3. package/.github/workflows/release-desktop-stable.yml +1 -1
  4. package/CHANGELOG.md +59 -0
  5. package/Dockerfile +6 -4
  6. package/README.md +2 -3
  7. package/README.zh-CN.md +2 -3
  8. package/changelog/v2.json +14 -0
  9. package/docker-compose/deploy/.env.example +3 -1
  10. package/docker-compose/deploy/.env.zh-CN.example +4 -1
  11. package/docker-compose/local/.env.example +0 -1
  12. package/docker-compose/local/.env.zh-CN.example +0 -1
  13. package/docker-compose/local/grafana/.env.example +0 -1
  14. package/docker-compose/local/grafana/.env.zh-CN.example +0 -1
  15. package/docker-compose/local/logto/docker-compose.yml +0 -1
  16. package/docker-compose/local/zitadel/.env.example +1 -2
  17. package/docker-compose/local/zitadel/.env.zh-CN.example +1 -2
  18. package/docker-compose/production/grafana/.env.example +0 -1
  19. package/docker-compose/production/grafana/.env.zh-CN.example +0 -1
  20. package/docker-compose/production/logto/.env.example +0 -2
  21. package/docker-compose/production/logto/.env.zh-CN.example +0 -2
  22. package/docker-compose/production/zitadel/.env.example +0 -2
  23. package/docker-compose/production/zitadel/.env.zh-CN.example +0 -2
  24. package/docker-compose/setup.sh +16 -2
  25. package/docs/development/basic/folder-structure.mdx +23 -14
  26. package/docs/development/basic/folder-structure.zh-CN.mdx +23 -14
  27. package/docs/development/basic/work-with-server-side-database.mdx +0 -1
  28. package/docs/development/basic/work-with-server-side-database.zh-CN.mdx +0 -1
  29. package/docs/development/start.mdx +19 -12
  30. package/docs/development/start.zh-CN.mdx +19 -12
  31. package/docs/self-hosting/advanced/s3/cloudflare-r2.mdx +0 -5
  32. package/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx +0 -5
  33. package/docs/self-hosting/advanced/s3/rustfs.mdx +0 -2
  34. package/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx +0 -2
  35. package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +0 -1
  36. package/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx +0 -2
  37. package/docs/self-hosting/advanced/s3.mdx +0 -9
  38. package/docs/self-hosting/advanced/s3.zh-CN.mdx +0 -8
  39. package/docs/self-hosting/auth/providers/password.mdx +112 -0
  40. package/docs/self-hosting/auth/providers/password.zh-CN.mdx +103 -0
  41. package/docs/self-hosting/auth.mdx +12 -0
  42. package/docs/self-hosting/auth.zh-CN.mdx +12 -0
  43. package/docs/self-hosting/environment-variables/auth.mdx +7 -0
  44. package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +7 -0
  45. package/docs/self-hosting/environment-variables/basic.mdx +0 -7
  46. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +0 -7
  47. package/docs/self-hosting/environment-variables/s3.mdx +0 -7
  48. package/docs/self-hosting/environment-variables/s3.zh-CN.mdx +0 -7
  49. package/docs/self-hosting/examples/azure-openai.mdx +0 -1
  50. package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +0 -1
  51. package/docs/self-hosting/platform/docker-compose.mdx +0 -1
  52. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +0 -1
  53. package/docs/self-hosting/platform/docker.mdx +5 -3
  54. package/docs/self-hosting/platform/docker.zh-CN.mdx +5 -4
  55. package/docs/self-hosting/platform/dokploy.mdx +0 -2
  56. package/docs/self-hosting/platform/dokploy.zh-CN.mdx +0 -2
  57. package/docs/self-hosting/platform/vercel.mdx +0 -7
  58. package/docs/self-hosting/platform/vercel.zh-CN.mdx +0 -7
  59. package/e2e/src/steps/home/sidebarAgent.steps.ts +56 -24
  60. package/locales/ar/authError.json +1 -0
  61. package/locales/ar/models.json +25 -22
  62. package/locales/ar/providers.json +0 -1
  63. package/locales/ar/setting.json +16 -0
  64. package/locales/bg-BG/authError.json +1 -0
  65. package/locales/bg-BG/models.json +18 -21
  66. package/locales/bg-BG/providers.json +0 -1
  67. package/locales/bg-BG/setting.json +16 -0
  68. package/locales/de-DE/authError.json +1 -0
  69. package/locales/de-DE/models.json +20 -20
  70. package/locales/de-DE/providers.json +0 -1
  71. package/locales/de-DE/setting.json +16 -0
  72. package/locales/en-US/auth.json +1 -0
  73. package/locales/en-US/models.json +22 -22
  74. package/locales/en-US/providers.json +0 -1
  75. package/locales/es-ES/authError.json +1 -0
  76. package/locales/es-ES/models.json +84 -20
  77. package/locales/es-ES/providers.json +0 -1
  78. package/locales/es-ES/setting.json +16 -0
  79. package/locales/fa-IR/authError.json +1 -0
  80. package/locales/fa-IR/models.json +43 -20
  81. package/locales/fa-IR/providers.json +0 -1
  82. package/locales/fa-IR/setting.json +16 -0
  83. package/locales/fr-FR/authError.json +1 -0
  84. package/locales/fr-FR/models.json +19 -21
  85. package/locales/fr-FR/providers.json +0 -1
  86. package/locales/fr-FR/setting.json +16 -0
  87. package/locales/it-IT/authError.json +1 -0
  88. package/locales/it-IT/models.json +17 -19
  89. package/locales/it-IT/providers.json +0 -1
  90. package/locales/it-IT/setting.json +16 -0
  91. package/locales/ja-JP/authError.json +1 -0
  92. package/locales/ja-JP/models.json +43 -22
  93. package/locales/ja-JP/providers.json +0 -1
  94. package/locales/ja-JP/setting.json +16 -0
  95. package/locales/ko-KR/authError.json +1 -0
  96. package/locales/ko-KR/models.json +41 -20
  97. package/locales/ko-KR/providers.json +0 -1
  98. package/locales/ko-KR/setting.json +16 -0
  99. package/locales/nl-NL/authError.json +1 -0
  100. package/locales/nl-NL/models.json +48 -20
  101. package/locales/nl-NL/providers.json +0 -1
  102. package/locales/nl-NL/setting.json +16 -0
  103. package/locales/pl-PL/authError.json +1 -0
  104. package/locales/pl-PL/models.json +19 -22
  105. package/locales/pl-PL/providers.json +0 -1
  106. package/locales/pl-PL/setting.json +16 -0
  107. package/locales/pt-BR/authError.json +1 -0
  108. package/locales/pt-BR/models.json +21 -21
  109. package/locales/pt-BR/providers.json +0 -1
  110. package/locales/pt-BR/setting.json +16 -0
  111. package/locales/ru-RU/authError.json +1 -0
  112. package/locales/ru-RU/models.json +23 -20
  113. package/locales/ru-RU/providers.json +0 -1
  114. package/locales/ru-RU/setting.json +16 -0
  115. package/locales/tr-TR/authError.json +1 -0
  116. package/locales/tr-TR/models.json +37 -20
  117. package/locales/tr-TR/providers.json +0 -1
  118. package/locales/tr-TR/setting.json +16 -0
  119. package/locales/vi-VN/authError.json +1 -0
  120. package/locales/vi-VN/models.json +15 -19
  121. package/locales/vi-VN/providers.json +0 -1
  122. package/locales/vi-VN/setting.json +16 -0
  123. package/locales/zh-CN/auth.json +1 -0
  124. package/locales/zh-CN/models.json +20 -20
  125. package/locales/zh-CN/providers.json +0 -1
  126. package/locales/zh-TW/authError.json +1 -0
  127. package/locales/zh-TW/models.json +20 -20
  128. package/locales/zh-TW/providers.json +0 -1
  129. package/locales/zh-TW/setting.json +16 -0
  130. package/netlify.toml +0 -1
  131. package/package.json +1 -1
  132. package/packages/model-bank/src/aiModels/google.ts +0 -19
  133. package/packages/model-bank/src/aiModels/moonshot.ts +56 -5
  134. package/packages/model-bank/src/aiModels/ollamacloud.ts +14 -0
  135. package/packages/model-bank/src/aiModels/openrouter.ts +0 -14
  136. package/packages/model-bank/src/aiModels/qwen.ts +105 -4
  137. package/packages/model-bank/src/aiModels/siliconcloud.ts +39 -0
  138. package/packages/model-bank/src/aiModels/wenxin.ts +0 -99
  139. package/packages/model-runtime/src/core/contextBuilders/openai.test.ts +24 -0
  140. package/packages/model-runtime/src/core/contextBuilders/openai.ts +22 -5
  141. package/packages/model-runtime/src/core/openaiCompatibleFactory/index.ts +10 -3
  142. package/packages/model-runtime/src/core/streams/google/google-ai.test.ts +54 -13
  143. package/packages/model-runtime/src/core/streams/google/index.ts +1 -4
  144. package/packages/model-runtime/src/providers/moonshot/index.ts +24 -2
  145. package/packages/model-runtime/src/providers/qwen/index.ts +16 -15
  146. package/packages/types/src/serverConfig.ts +1 -0
  147. package/src/app/[variants]/(auth)/signin/SignInEmailStep.tsx +56 -49
  148. package/src/app/[variants]/(auth)/signin/page.tsx +2 -0
  149. package/src/app/[variants]/(auth)/signin/useSignIn.ts +2 -0
  150. package/src/app/[variants]/(auth)/signup/[[...signup]]/page.tsx +7 -0
  151. package/src/envs/app.ts +0 -2
  152. package/src/envs/auth.ts +3 -0
  153. package/src/libs/better-auth/define-config.ts +1 -1
  154. package/src/libs/next/proxy/define-config.ts +0 -1
  155. package/src/locales/default/auth.ts +2 -0
  156. package/src/server/globalConfig/index.ts +1 -0
  157. package/src/server/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts +3 -2
  158. package/src/store/chat/slices/topic/action.ts +1 -1
  159. package/src/store/electron/actions/settings.ts +7 -7
  160. package/src/store/electron/actions/sync.ts +11 -11
  161. package/src/store/global/actions/general.ts +12 -12
  162. package/src/store/global/initialState.ts +11 -11
  163. package/src/store/global/selectors/clientDB.ts +1 -1
  164. package/src/store/global/selectors/systemStatus.ts +1 -1
  165. package/src/store/image/slices/generationConfig/action.ts +12 -12
  166. package/src/store/image/utils/size.ts +11 -11
  167. package/src/store/library/slices/ragEval/actions/dataset.ts +1 -1
  168. package/src/store/serverConfig/selectors.ts +1 -0
  169. package/src/store/session/slices/session/initialState.ts +6 -6
  170. package/src/store/session/slices/session/reducers.ts +1 -1
  171. package/src/store/session/slices/sessionGroup/initialState.ts +2 -2
  172. package/src/store/tool/slices/customPlugin/action.ts +2 -2
  173. package/src/store/tool/slices/oldStore/action.ts +5 -5
  174. package/src/store/userMemory/slices/preference/action.ts +6 -6
@@ -97,28 +97,28 @@ export const createPreferenceSlice: StateCreator<
97
97
  produce((draft) => {
98
98
  draft.preferencesSearchLoading = false;
99
99
 
100
- // 设置基础信息
100
+ // Set basic information
101
101
  if (!draft.preferencesInit) {
102
102
  draft.preferencesInit = true;
103
103
  draft.preferencesTotal = data.total;
104
104
  }
105
105
 
106
- // 转换数据结构
106
+ // Transform data structure
107
107
  const transformedItems = data.items.map((item: any) => ({
108
108
  ...item.memory,
109
109
  ...item.preference,
110
110
  }));
111
111
 
112
- // 累积数据逻辑
112
+ // Accumulate data logic
113
113
  if (page === 1) {
114
- // 第一页,直接设置
114
+ // First page, set directly
115
115
  draft.preferences = uniqBy(transformedItems, 'id');
116
116
  } else {
117
- // 后续页面,累积数据
117
+ // Subsequent pages, accumulate data
118
118
  draft.preferences = uniqBy([...draft.preferences, ...transformedItems], 'id');
119
119
  }
120
120
 
121
- // 更新 hasMore
121
+ // Update hasMore
122
122
  draft.preferencesHasMore = data.items.length >= (params.pageSize || 20);
123
123
  }),
124
124
  false,