@lobehub/lobehub 2.0.0-next.13 → 2.0.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/desktop-pr-build.yml +6 -6
- package/.github/workflows/release-desktop-beta.yml +4 -4
- package/.github/workflows/release.yml +1 -2
- package/.github/workflows/test.yml +4 -5
- package/.nvmrc +1 -1
- package/CHANGELOG.md +42 -0
- package/apps/desktop/tsconfig.json +0 -1
- package/changelog/v1.json +14 -0
- package/e2e/tsconfig.json +0 -1
- package/package.json +58 -58
- package/packages/const/src/version.ts +3 -3
- package/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts +2 -1
- package/packages/database/src/repositories/dataImporter/deprecated/index.ts +7 -1
- package/packages/web-crawler/tsconfig.json +0 -1
- package/src/app/[variants]/(main)/(mobile)/me/(home)/__tests__/useCategory.test.tsx +9 -0
- package/src/app/[variants]/(main)/(mobile)/me/(home)/layout.tsx +0 -2
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/Actions.tsx +3 -28
- package/src/app/[variants]/(main)/chat/_layout/Desktop/index.tsx +0 -2
- package/src/app/[variants]/(main)/chat/_layout/Mobile.tsx +1 -5
- package/src/app/[variants]/(main)/chat/settings/features/HeaderContent.tsx +2 -62
- package/src/app/[variants]/(main)/image/page.tsx +0 -2
- package/src/app/[variants]/(main)/profile/_layout/Desktop/index.tsx +23 -24
- package/src/app/[variants]/(main)/profile/_layout/Mobile/index.tsx +5 -9
- package/src/app/[variants]/(main)/settings/_layout/Desktop/index.tsx +0 -2
- package/src/app/[variants]/(main)/settings/_layout/Mobile/index.tsx +0 -2
- package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +1 -1
- package/src/app/[variants]/loading/index.tsx +1 -10
- package/src/components/Link.tsx +12 -0
- package/src/envs/app.ts +5 -8
- package/src/features/DataImporter/index.tsx +15 -60
- package/src/features/DevPanel/PostgresViewer/usePgTable.ts +3 -2
- package/src/hooks/useInterceptingRoutes.test.ts +21 -3
- package/src/libs/trpc/client/index.ts +0 -1
- package/src/libs/trpc/client/lambda.ts +8 -5
- package/src/server/routers/desktop/mcp.ts +1 -3
- package/src/server/routers/lambda/config/index.test.ts +2 -2
- package/src/server/routers/tools/mcp.ts +2 -3
- package/src/server/routers/tools/search.test.ts +1 -7
- package/src/server/routers/tools/search.ts +1 -4
- package/src/services/__tests__/tool.test.ts +0 -3
- package/src/services/aiModel/index.test.ts +0 -3
- package/src/services/aiModel/index.ts +1 -7
- package/src/services/aiProvider/index.test.ts +0 -3
- package/src/services/aiProvider/index.ts +1 -7
- package/src/services/chatGroup/index.ts +1 -10
- package/src/services/config.ts +1 -65
- package/src/services/export/index.ts +1 -4
- package/src/services/file/index.ts +1 -11
- package/src/services/import/index.ts +1 -7
- package/src/services/message/index.ts +1 -11
- package/src/services/plugin/index.ts +1 -11
- package/src/services/session/index.ts +1 -11
- package/src/services/tableViewer/client.ts +12 -15
- package/src/services/thread/index.ts +1 -7
- package/src/services/topic/index.ts +1 -11
- package/src/services/user/index.ts +1 -13
- package/src/store/chat/slices/aiChat/actions/__tests__/generateAIChat.test.ts +0 -241
- package/src/store/chat/slices/aiChat/actions/__tests__/generateAIChatV2.test.ts +26 -1
- package/src/store/chat/slices/aiChat/actions/__tests__/helpers.ts +3 -1
- package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +1 -138
- package/src/store/user/slices/common/action.test.ts +1 -4
- package/tsconfig.json +0 -1
- package/src/app/(backend)/trpc/edge/[trpc]/route.ts +0 -26
- package/src/app/[variants]/(main)/(mobile)/me/data/features/Category.tsx +0 -48
- package/src/app/[variants]/(main)/(mobile)/me/data/features/Header.tsx +0 -33
- package/src/app/[variants]/(main)/(mobile)/me/data/layout.tsx +0 -13
- package/src/app/[variants]/(main)/(mobile)/me/data/loading.tsx +0 -5
- package/src/app/[variants]/(main)/(mobile)/me/data/page.tsx +0 -29
- package/src/app/[variants]/(main)/chat/features/Migration/DBReader.ts +0 -290
- package/src/app/[variants]/(main)/chat/features/Migration/ExportConfigButton.tsx +0 -35
- package/src/app/[variants]/(main)/chat/features/Migration/Failed.tsx +0 -120
- package/src/app/[variants]/(main)/chat/features/Migration/Modal.tsx +0 -81
- package/src/app/[variants]/(main)/chat/features/Migration/Start.tsx +0 -108
- package/src/app/[variants]/(main)/chat/features/Migration/UpgradeButton.tsx +0 -71
- package/src/app/[variants]/(main)/chat/features/Migration/const.ts +0 -15
- package/src/app/[variants]/(main)/chat/features/Migration/index.tsx +0 -50
- package/src/app/[variants]/loading/Client/Content.tsx +0 -48
- package/src/app/[variants]/loading/Client/Error.tsx +0 -27
- package/src/app/[variants]/loading/Client/Redirect.tsx +0 -47
- package/src/app/[variants]/loading/Client/index.tsx +0 -22
- package/src/components/InnerLink.tsx +0 -20
- package/src/database/_deprecated/core/__tests__/db-upgrade.test.ts +0 -42
- package/src/database/_deprecated/core/__tests__/db.test.ts +0 -79
- package/src/database/_deprecated/core/__tests__/model.test.ts +0 -55
- package/src/database/_deprecated/core/db.ts +0 -246
- package/src/database/_deprecated/core/index.ts +0 -2
- package/src/database/_deprecated/core/migrations/migrateSettingsToUser/fixtures/input.json +0 -55
- package/src/database/_deprecated/core/migrations/migrateSettingsToUser/fixtures/output.json +0 -60
- package/src/database/_deprecated/core/migrations/migrateSettingsToUser/index.test.ts +0 -14
- package/src/database/_deprecated/core/migrations/migrateSettingsToUser/index.ts +0 -22
- package/src/database/_deprecated/core/migrations/migrateSettingsToUser/type.ts +0 -105
- package/src/database/_deprecated/core/model.ts +0 -218
- package/src/database/_deprecated/core/schemas.ts +0 -88
- package/src/database/_deprecated/core/types/db.ts +0 -15
- package/src/database/_deprecated/models/__DEBUG.ts +0 -124
- package/src/database/_deprecated/models/__tests__/file.test.ts +0 -83
- package/src/database/_deprecated/models/__tests__/message.test.ts +0 -426
- package/src/database/_deprecated/models/__tests__/plugin.test.ts +0 -81
- package/src/database/_deprecated/models/__tests__/session.test.ts +0 -253
- package/src/database/_deprecated/models/__tests__/sessionGroup.test.ts +0 -220
- package/src/database/_deprecated/models/__tests__/topic.test.ts +0 -523
- package/src/database/_deprecated/models/__tests__/user.test.ts +0 -82
- package/src/database/_deprecated/models/file.ts +0 -51
- package/src/database/_deprecated/models/message.ts +0 -277
- package/src/database/_deprecated/models/plugin.ts +0 -62
- package/src/database/_deprecated/models/session.ts +0 -271
- package/src/database/_deprecated/models/sessionGroup.ts +0 -93
- package/src/database/_deprecated/models/topic.ts +0 -250
- package/src/database/_deprecated/models/user.ts +0 -69
- package/src/database/_deprecated/schemas/files.ts +0 -39
- package/src/database/_deprecated/schemas/message.ts +0 -50
- package/src/database/_deprecated/schemas/plugin.ts +0 -12
- package/src/database/_deprecated/schemas/session.ts +0 -54
- package/src/database/_deprecated/schemas/sessionGroup.ts +0 -8
- package/src/database/_deprecated/schemas/topic.ts +0 -12
- package/src/database/_deprecated/schemas/user.ts +0 -40
- package/src/features/DataImporter/_deprecated.ts +0 -43
- package/src/features/InitClientDB/EnableModal.tsx +0 -118
- package/src/features/InitClientDB/ErrorResult.tsx +0 -143
- package/src/features/InitClientDB/InitIndicator.tsx +0 -124
- package/src/features/InitClientDB/PGliteIcon.tsx +0 -28
- package/src/features/InitClientDB/features/DatabaseRepair/Backup.tsx +0 -75
- package/src/features/InitClientDB/features/DatabaseRepair/Diagnosis.tsx +0 -98
- package/src/features/InitClientDB/features/DatabaseRepair/Repair.tsx +0 -218
- package/src/features/InitClientDB/features/DatabaseRepair/index.tsx +0 -91
- package/src/features/InitClientDB/index.tsx +0 -37
- package/src/libs/trpc/client/edge.ts +0 -26
- package/src/libs/trpc/edge/context.ts +0 -71
- package/src/libs/trpc/edge/index.ts +0 -45
- package/src/libs/trpc/edge/init.ts +0 -26
- package/src/libs/trpc/edge/middleware/jwtPayload.test.ts +0 -75
- package/src/libs/trpc/edge/middleware/jwtPayload.ts +0 -14
- package/src/migrations/FromV0ToV1.ts +0 -10
- package/src/migrations/FromV1ToV2/fixtures/input-v1-session.json +0 -191
- package/src/migrations/FromV1ToV2/fixtures/output-v2.json +0 -202
- package/src/migrations/FromV1ToV2/index.ts +0 -82
- package/src/migrations/FromV1ToV2/migrations.test.ts +0 -224
- package/src/migrations/FromV1ToV2/types/v1.ts +0 -78
- package/src/migrations/FromV1ToV2/types/v2.ts +0 -52
- package/src/migrations/FromV2ToV3/fixtures/input-v2-session.json +0 -72
- package/src/migrations/FromV2ToV3/fixtures/output-v3-from-v1.json +0 -203
- package/src/migrations/FromV2ToV3/fixtures/output-v3.json +0 -74
- package/src/migrations/FromV2ToV3/index.ts +0 -30
- package/src/migrations/FromV2ToV3/migrations.test.ts +0 -42
- package/src/migrations/FromV2ToV3/types/v3.ts +0 -27
- package/src/migrations/FromV3ToV4/fixtures/azure-input-v3.json +0 -79
- package/src/migrations/FromV3ToV4/fixtures/azure-output-v4.json +0 -75
- package/src/migrations/FromV3ToV4/fixtures/ollama-input-v3.json +0 -85
- package/src/migrations/FromV3ToV4/fixtures/ollama-output-v4.json +0 -86
- package/src/migrations/FromV3ToV4/fixtures/openai-input-v3.json +0 -77
- package/src/migrations/FromV3ToV4/fixtures/openai-output-v4.json +0 -77
- package/src/migrations/FromV3ToV4/fixtures/openrouter-input-v3.json +0 -82
- package/src/migrations/FromV3ToV4/fixtures/openrouter-output-v4.json +0 -85
- package/src/migrations/FromV3ToV4/fixtures/output-v4-from-v1.json +0 -203
- package/src/migrations/FromV3ToV4/index.ts +0 -102
- package/src/migrations/FromV3ToV4/migrations.test.ts +0 -195
- package/src/migrations/FromV3ToV4/types/v3.ts +0 -52
- package/src/migrations/FromV3ToV4/types/v4.ts +0 -37
- package/src/migrations/FromV4ToV5/fixtures/from-v1-to-v5-output.json +0 -245
- package/src/migrations/FromV4ToV5/fixtures/function-input-v4.json +0 -96
- package/src/migrations/FromV4ToV5/fixtures/function-output-v5.json +0 -120
- package/src/migrations/FromV4ToV5/index.ts +0 -58
- package/src/migrations/FromV4ToV5/migrations.test.ts +0 -49
- package/src/migrations/FromV4ToV5/types/v4.ts +0 -21
- package/src/migrations/FromV4ToV5/types/v5.ts +0 -27
- package/src/migrations/FromV5ToV6/fixtures/from-v1-to-v6-output.json +0 -247
- package/src/migrations/FromV5ToV6/fixtures/session-input-v5.json +0 -81
- package/src/migrations/FromV5ToV6/fixtures/session-output-v6.json +0 -85
- package/src/migrations/FromV5ToV6/index.ts +0 -61
- package/src/migrations/FromV5ToV6/migrations.test.ts +0 -50
- package/src/migrations/FromV5ToV6/types/v5.ts +0 -48
- package/src/migrations/FromV5ToV6/types/v6.ts +0 -63
- package/src/migrations/FromV6ToV7/fixtures/output-v7-from-v1.json +0 -203
- package/src/migrations/FromV6ToV7/fixtures/provider-input-v6.json +0 -103
- package/src/migrations/FromV6ToV7/fixtures/provider-output-v7.json +0 -118
- package/src/migrations/FromV6ToV7/index.ts +0 -101
- package/src/migrations/FromV6ToV7/migrations.test.ts +0 -64
- package/src/migrations/FromV6ToV7/types/v6.ts +0 -61
- package/src/migrations/FromV6ToV7/types/v7.ts +0 -69
- package/src/migrations/VersionController.test.ts +0 -88
- package/src/migrations/VersionController.ts +0 -67
- package/src/migrations/index.ts +0 -61
- package/src/server/routers/edge/appStatus.ts +0 -3
- package/src/server/routers/edge/index.ts +0 -14
- package/src/server/routers/edge/upload.ts +0 -16
- package/src/services/aiModel/client.ts +0 -70
- package/src/services/aiProvider/client.ts +0 -58
- package/src/services/baseClientService/index.ts +0 -9
- package/src/services/chatGroup/client.ts +0 -63
- package/src/services/export/_deprecated.ts +0 -155
- package/src/services/export/client.ts +0 -15
- package/src/services/file/_deprecated.test.ts +0 -119
- package/src/services/file/_deprecated.ts +0 -80
- package/src/services/file/client.test.ts +0 -199
- package/src/services/file/client.ts +0 -85
- package/src/services/import/_deprecated.ts +0 -115
- package/src/services/import/client.test.ts +0 -1015
- package/src/services/import/client.ts +0 -64
- package/src/services/message/_deprecated.test.ts +0 -398
- package/src/services/message/_deprecated.ts +0 -168
- package/src/services/message/client.test.ts +0 -410
- package/src/services/message/client.ts +0 -192
- package/src/services/plugin/_deprecated.test.ts +0 -162
- package/src/services/plugin/_deprecated.ts +0 -42
- package/src/services/plugin/client.test.ts +0 -177
- package/src/services/plugin/client.ts +0 -46
- package/src/services/session/_deprecated.test.ts +0 -440
- package/src/services/session/_deprecated.ts +0 -190
- package/src/services/session/client.test.ts +0 -413
- package/src/services/session/client.ts +0 -193
- package/src/services/thread/client.ts +0 -51
- package/src/services/topic/_deprecated.test.ts +0 -245
- package/src/services/topic/_deprecated.ts +0 -75
- package/src/services/topic/client.ts +0 -89
- package/src/services/topic/pglite.test.ts +0 -212
- package/src/services/user/_deprecated.test.ts +0 -101
- package/src/services/user/_deprecated.ts +0 -70
- package/src/services/user/client.test.ts +0 -111
- package/src/services/user/client.ts +0 -104
|
@@ -4,9 +4,9 @@ on:
|
|
|
4
4
|
pull_request_target:
|
|
5
5
|
types: [synchronize, labeled, unlabeled] # PR 更新或标签变化时触发
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# 确保同一 PR 同一时间只运行一个相同的 workflow,取消正在进行的旧的运行
|
|
8
8
|
concurrency:
|
|
9
|
-
group:
|
|
9
|
+
group: pr-${{ github.event.pull_request.number }}-${{ github.workflow }}
|
|
10
10
|
cancel-in-progress: true
|
|
11
11
|
|
|
12
12
|
# Add default permissions
|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
- name: Setup Node.js
|
|
33
33
|
uses: actions/setup-node@v6
|
|
34
34
|
with:
|
|
35
|
-
node-version:
|
|
35
|
+
node-version: 24
|
|
36
36
|
package-manager-cache: false
|
|
37
37
|
|
|
38
38
|
- name: Install bun
|
|
@@ -66,7 +66,7 @@ jobs:
|
|
|
66
66
|
- name: Setup Node.js
|
|
67
67
|
uses: actions/setup-node@v6
|
|
68
68
|
with:
|
|
69
|
-
node-version:
|
|
69
|
+
node-version: 24
|
|
70
70
|
package-manager-cache: false
|
|
71
71
|
|
|
72
72
|
# 主要逻辑:确定构建版本号
|
|
@@ -111,7 +111,7 @@ jobs:
|
|
|
111
111
|
- name: Setup Node.js
|
|
112
112
|
uses: actions/setup-node@v6
|
|
113
113
|
with:
|
|
114
|
-
node-version:
|
|
114
|
+
node-version: 24
|
|
115
115
|
package-manager-cache: false
|
|
116
116
|
|
|
117
117
|
# node-linker=hoisted 模式将可以确保 asar 压缩可用
|
|
@@ -230,7 +230,7 @@ jobs:
|
|
|
230
230
|
- name: Setup Node.js
|
|
231
231
|
uses: actions/setup-node@v6
|
|
232
232
|
with:
|
|
233
|
-
node-version:
|
|
233
|
+
node-version: 24
|
|
234
234
|
package-manager-cache: false
|
|
235
235
|
|
|
236
236
|
- name: Install bun
|
|
@@ -26,7 +26,7 @@ jobs:
|
|
|
26
26
|
- name: Setup Node.js
|
|
27
27
|
uses: actions/setup-node@v6
|
|
28
28
|
with:
|
|
29
|
-
node-version:
|
|
29
|
+
node-version: 24
|
|
30
30
|
package-manager-cache: false
|
|
31
31
|
|
|
32
32
|
- name: Install bun
|
|
@@ -55,7 +55,7 @@ jobs:
|
|
|
55
55
|
- name: Setup Node.js
|
|
56
56
|
uses: actions/setup-node@v6
|
|
57
57
|
with:
|
|
58
|
-
node-version:
|
|
58
|
+
node-version: 24
|
|
59
59
|
package-manager-cache: false
|
|
60
60
|
|
|
61
61
|
# 主要逻辑:确定构建版本号
|
|
@@ -96,7 +96,7 @@ jobs:
|
|
|
96
96
|
- name: Setup Node.js
|
|
97
97
|
uses: actions/setup-node@v6
|
|
98
98
|
with:
|
|
99
|
-
node-version:
|
|
99
|
+
node-version: 24
|
|
100
100
|
package-manager-cache: false
|
|
101
101
|
|
|
102
102
|
# node-linker=hoisted 模式将可以确保 asar 压缩可用
|
|
@@ -210,7 +210,7 @@ jobs:
|
|
|
210
210
|
- name: Setup Node.js
|
|
211
211
|
uses: actions/setup-node@v6
|
|
212
212
|
with:
|
|
213
|
-
node-version:
|
|
213
|
+
node-version: 24
|
|
214
214
|
package-manager-cache: false
|
|
215
215
|
|
|
216
216
|
- name: Install bun
|
|
@@ -24,7 +24,6 @@ jobs:
|
|
|
24
24
|
options: >-
|
|
25
25
|
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
ports:
|
|
29
28
|
- 5432:5432
|
|
30
29
|
|
|
@@ -36,7 +35,7 @@ jobs:
|
|
|
36
35
|
- name: Setup Node.js
|
|
37
36
|
uses: actions/setup-node@v6
|
|
38
37
|
with:
|
|
39
|
-
node-version:
|
|
38
|
+
node-version: 24
|
|
40
39
|
package-manager-cache: false
|
|
41
40
|
|
|
42
41
|
- name: Install bun
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
- name: Setup Node.js
|
|
31
31
|
uses: actions/setup-node@v6
|
|
32
32
|
with:
|
|
33
|
-
node-version:
|
|
33
|
+
node-version: 24
|
|
34
34
|
package-manager-cache: false
|
|
35
35
|
|
|
36
36
|
- name: Install bun
|
|
@@ -65,7 +65,7 @@ jobs:
|
|
|
65
65
|
- name: Setup Node.js
|
|
66
66
|
uses: actions/setup-node@v6
|
|
67
67
|
with:
|
|
68
|
-
node-version:
|
|
68
|
+
node-version: 24
|
|
69
69
|
package-manager-cache: false
|
|
70
70
|
|
|
71
71
|
- name: Install bun
|
|
@@ -98,7 +98,7 @@ jobs:
|
|
|
98
98
|
- name: Setup Node.js
|
|
99
99
|
uses: actions/setup-node@v6
|
|
100
100
|
with:
|
|
101
|
-
node-version:
|
|
101
|
+
node-version: 24
|
|
102
102
|
package-manager-cache: false
|
|
103
103
|
|
|
104
104
|
- name: Install bun
|
|
@@ -132,7 +132,6 @@ jobs:
|
|
|
132
132
|
options: >-
|
|
133
133
|
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
|
134
134
|
|
|
135
|
-
|
|
136
135
|
ports:
|
|
137
136
|
- 5432:5432
|
|
138
137
|
|
|
@@ -142,7 +141,7 @@ jobs:
|
|
|
142
141
|
- name: Setup Node.js
|
|
143
142
|
uses: actions/setup-node@v6
|
|
144
143
|
with:
|
|
145
|
-
node-version:
|
|
144
|
+
node-version: 24
|
|
146
145
|
package-manager-cache: false
|
|
147
146
|
|
|
148
147
|
- name: Install pnpm
|
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
lts/
|
|
1
|
+
lts/Krypton
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.15](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.14...v2.0.0-next.15)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-11-03**</sup>
|
|
8
|
+
|
|
9
|
+
<br/>
|
|
10
|
+
|
|
11
|
+
<details>
|
|
12
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
13
|
+
|
|
14
|
+
</details>
|
|
15
|
+
|
|
16
|
+
<div align="right">
|
|
17
|
+
|
|
18
|
+
[](#readme-top)
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
## [Version 2.0.0-next.14](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.13...v2.0.0-next.14)
|
|
23
|
+
|
|
24
|
+
<sup>Released on **2025-11-02**</sup>
|
|
25
|
+
|
|
26
|
+
#### ♻ Code Refactoring
|
|
27
|
+
|
|
28
|
+
- **misc**: Remove client service.
|
|
29
|
+
|
|
30
|
+
<br/>
|
|
31
|
+
|
|
32
|
+
<details>
|
|
33
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
34
|
+
|
|
35
|
+
#### Code refactoring
|
|
36
|
+
|
|
37
|
+
- **misc**: Remove client service, closes [#9991](https://github.com/lobehub/lobe-chat/issues/9991) ([9137dba](https://github.com/lobehub/lobe-chat/commit/9137dba))
|
|
38
|
+
|
|
39
|
+
</details>
|
|
40
|
+
|
|
41
|
+
<div align="right">
|
|
42
|
+
|
|
43
|
+
[](#readme-top)
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
5
47
|
## [Version 2.0.0-next.13](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.12...v2.0.0-next.13)
|
|
6
48
|
|
|
7
49
|
<sup>Released on **2025-11-02**</sup>
|
package/changelog/v1.json
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"children": {},
|
|
4
|
+
"date": "2025-11-03",
|
|
5
|
+
"version": "2.0.0-next.15"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"children": {
|
|
9
|
+
"improvements": [
|
|
10
|
+
"Remove client service."
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"date": "2025-11-02",
|
|
14
|
+
"version": "2.0.0-next.14"
|
|
15
|
+
},
|
|
2
16
|
{
|
|
3
17
|
"children": {
|
|
4
18
|
"fixes": [
|
package/e2e/tsconfig.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.15",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -126,24 +126,24 @@
|
|
|
126
126
|
"dependencies": {
|
|
127
127
|
"@ant-design/icons": "^5.6.1",
|
|
128
128
|
"@ant-design/pro-components": "^2.8.10",
|
|
129
|
-
"@anthropic-ai/sdk": "^0.67.
|
|
129
|
+
"@anthropic-ai/sdk": "^0.67.1",
|
|
130
130
|
"@auth/core": "^0.40.0",
|
|
131
131
|
"@aws-sdk/client-s3": "~3.893.0",
|
|
132
132
|
"@aws-sdk/s3-request-presigner": "~3.893.0",
|
|
133
133
|
"@azure-rest/ai-inference": "1.0.0-beta.5",
|
|
134
134
|
"@azure/core-auth": "^1.10.1",
|
|
135
135
|
"@cfworker/json-schema": "^4.1.1",
|
|
136
|
-
"@clerk/localizations": "^3.
|
|
137
|
-
"@clerk/nextjs": "^6.
|
|
138
|
-
"@clerk/themes": "^2.4.
|
|
136
|
+
"@clerk/localizations": "^3.26.4",
|
|
137
|
+
"@clerk/nextjs": "^6.34.1",
|
|
138
|
+
"@clerk/themes": "^2.4.30",
|
|
139
139
|
"@codesandbox/sandpack-react": "^2.20.0",
|
|
140
140
|
"@cyntler/react-doc-viewer": "^1.17.1",
|
|
141
141
|
"@electric-sql/pglite": "0.2.17",
|
|
142
142
|
"@emotion/react": "^11.14.0",
|
|
143
|
-
"@fal-ai/client": "^1.
|
|
143
|
+
"@fal-ai/client": "^1.7.2",
|
|
144
144
|
"@formkit/auto-animate": "^0.9.0",
|
|
145
|
-
"@google/genai": "^1.
|
|
146
|
-
"@huggingface/inference": "^4.
|
|
145
|
+
"@google/genai": "^1.28.0",
|
|
146
|
+
"@huggingface/inference": "^4.13.0",
|
|
147
147
|
"@icons-pack/react-simple-icons": "^13.8.0",
|
|
148
148
|
"@khmyznikov/pwa-install": "0.3.9",
|
|
149
149
|
"@langchain/community": "^0.3.57",
|
|
@@ -164,44 +164,44 @@
|
|
|
164
164
|
"@lobehub/charts": "^2.1.2",
|
|
165
165
|
"@lobehub/chat-plugin-sdk": "^1.32.4",
|
|
166
166
|
"@lobehub/chat-plugins-gateway": "^1.9.0",
|
|
167
|
-
"@lobehub/editor": "^1.
|
|
168
|
-
"@lobehub/icons": "^2.
|
|
167
|
+
"@lobehub/editor": "^1.21.2",
|
|
168
|
+
"@lobehub/icons": "^2.43.1",
|
|
169
169
|
"@lobehub/market-sdk": "^0.22.7",
|
|
170
170
|
"@lobehub/tts": "^2.0.1",
|
|
171
|
-
"@lobehub/ui": "^2.13.
|
|
172
|
-
"@modelcontextprotocol/sdk": "^1.20.
|
|
171
|
+
"@lobehub/ui": "^2.13.5",
|
|
172
|
+
"@modelcontextprotocol/sdk": "^1.20.2",
|
|
173
173
|
"@neondatabase/serverless": "^1.0.2",
|
|
174
174
|
"@next/third-parties": "^16.0.1",
|
|
175
|
-
"@opentelemetry/exporter-jaeger": "^2.
|
|
175
|
+
"@opentelemetry/exporter-jaeger": "^2.2.0",
|
|
176
176
|
"@opentelemetry/winston-transport": "^0.18.0",
|
|
177
|
-
"@react-pdf/renderer": "^4.3.
|
|
177
|
+
"@react-pdf/renderer": "^4.3.1",
|
|
178
178
|
"@react-spring/web": "^9.7.5",
|
|
179
|
-
"@saintno/comfyui-sdk": "^0.2.
|
|
179
|
+
"@saintno/comfyui-sdk": "^0.2.49",
|
|
180
180
|
"@serwist/next": "^9.2.1",
|
|
181
181
|
"@t3-oss/env-nextjs": "^0.13.8",
|
|
182
|
-
"@tanstack/react-query": "^5.90.
|
|
183
|
-
"@trpc/client": "^11.
|
|
184
|
-
"@trpc/next": "^11.
|
|
185
|
-
"@trpc/react-query": "^11.
|
|
186
|
-
"@trpc/server": "^11.
|
|
182
|
+
"@tanstack/react-query": "^5.90.6",
|
|
183
|
+
"@trpc/client": "^11.7.1",
|
|
184
|
+
"@trpc/next": "^11.7.1",
|
|
185
|
+
"@trpc/react-query": "^11.7.1",
|
|
186
|
+
"@trpc/server": "^11.7.1",
|
|
187
187
|
"@vercel/analytics": "^1.5.0",
|
|
188
|
-
"@vercel/edge-config": "^1.4.
|
|
189
|
-
"@vercel/functions": "^3.1.
|
|
188
|
+
"@vercel/edge-config": "^1.4.3",
|
|
189
|
+
"@vercel/functions": "^3.1.4",
|
|
190
190
|
"@vercel/speed-insights": "^1.2.0",
|
|
191
191
|
"@virtuoso.dev/masonry": "^1.3.5",
|
|
192
192
|
"@xterm/xterm": "^5.5.0",
|
|
193
|
-
"ahooks": "^3.9.
|
|
194
|
-
"antd": "^5.
|
|
193
|
+
"ahooks": "^3.9.6",
|
|
194
|
+
"antd": "^5.28.0",
|
|
195
195
|
"antd-style": "^3.7.1",
|
|
196
196
|
"brotli-wasm": "^3.0.1",
|
|
197
197
|
"chroma-js": "^3.1.2",
|
|
198
198
|
"cookie": "^1.0.2",
|
|
199
199
|
"countries-and-timezones": "^3.8.0",
|
|
200
|
-
"dayjs": "^1.11.
|
|
200
|
+
"dayjs": "^1.11.19",
|
|
201
201
|
"debug": "^4.4.3",
|
|
202
202
|
"dexie": "^3.2.7",
|
|
203
203
|
"diff": "^8.0.2",
|
|
204
|
-
"drizzle-orm": "^0.44.
|
|
204
|
+
"drizzle-orm": "^0.44.7",
|
|
205
205
|
"drizzle-zod": "^0.5.1",
|
|
206
206
|
"epub2": "^3.0.2",
|
|
207
207
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -215,19 +215,19 @@
|
|
|
215
215
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
216
216
|
"i18next-resources-to-backend": "^1.2.1",
|
|
217
217
|
"idb-keyval": "^6.2.2",
|
|
218
|
-
"immer": "^10.
|
|
218
|
+
"immer": "^10.2.0",
|
|
219
219
|
"jose": "^5.10.0",
|
|
220
220
|
"js-sha256": "^0.11.1",
|
|
221
221
|
"jsonl-parse-stringify": "^1.0.3",
|
|
222
222
|
"keyv": "^4.5.4",
|
|
223
|
-
"langchain": "^0.3.
|
|
224
|
-
"langfuse": "^3.38.
|
|
225
|
-
"langfuse-core": "^3.38.
|
|
223
|
+
"langchain": "^0.3.36",
|
|
224
|
+
"langfuse": "^3.38.6",
|
|
225
|
+
"langfuse-core": "^3.38.6",
|
|
226
226
|
"lodash-es": "^4.17.21",
|
|
227
227
|
"lucide-react": "^0.548.0",
|
|
228
228
|
"mammoth": "^1.11.0",
|
|
229
229
|
"markdown-to-txt": "^2.0.1",
|
|
230
|
-
"marked": "^16.
|
|
230
|
+
"marked": "^16.4.1",
|
|
231
231
|
"mdast-util-to-markdown": "^2.1.2",
|
|
232
232
|
"model-bank": "workspace:*",
|
|
233
233
|
"modern-screenshot": "^4.6.6",
|
|
@@ -238,19 +238,19 @@
|
|
|
238
238
|
"nextjs-toploader": "^3.9.17",
|
|
239
239
|
"node-machine-id": "^1.1.12",
|
|
240
240
|
"numeral": "^2.0.6",
|
|
241
|
-
"nuqs": "^2.7.
|
|
241
|
+
"nuqs": "^2.7.2",
|
|
242
242
|
"officeparser": "5.1.1",
|
|
243
|
-
"oidc-provider": "^9.5.
|
|
244
|
-
"ollama": "^0.6.
|
|
243
|
+
"oidc-provider": "^9.5.2",
|
|
244
|
+
"ollama": "^0.6.2",
|
|
245
245
|
"openai": "^4.104.0",
|
|
246
|
-
"openapi-fetch": "^0.14.
|
|
246
|
+
"openapi-fetch": "^0.14.1",
|
|
247
247
|
"partial-json": "^0.1.7",
|
|
248
248
|
"path-browserify-esm": "^1.0.6",
|
|
249
|
-
"pdf-parse": "^1.1.
|
|
249
|
+
"pdf-parse": "^1.1.4",
|
|
250
250
|
"pdfjs-dist": "4.8.69",
|
|
251
251
|
"pdfkit": "^0.17.2",
|
|
252
252
|
"pg": "^8.16.3",
|
|
253
|
-
"pino": "^9.
|
|
253
|
+
"pino": "^9.14.0",
|
|
254
254
|
"plaiceholder": "^3.0.0",
|
|
255
255
|
"polished": "^4.3.1",
|
|
256
256
|
"posthog-js": "~1.278.0",
|
|
@@ -262,14 +262,14 @@
|
|
|
262
262
|
"react-confetti": "^6.4.0",
|
|
263
263
|
"react-dom": "19.2.0",
|
|
264
264
|
"react-fast-marquee": "^1.6.5",
|
|
265
|
-
"react-hotkeys-hook": "^5.1
|
|
265
|
+
"react-hotkeys-hook": "^5.2.1",
|
|
266
266
|
"react-i18next": "^15.7.4",
|
|
267
267
|
"react-layout-kit": "^2.0.0",
|
|
268
268
|
"react-lazy-load": "^4.0.1",
|
|
269
269
|
"react-pdf": "^9.2.1",
|
|
270
270
|
"react-responsive": "^10.0.1",
|
|
271
271
|
"react-rnd": "^10.5.2",
|
|
272
|
-
"react-router-dom": "^7.9.
|
|
272
|
+
"react-router-dom": "^7.9.5",
|
|
273
273
|
"react-scan": "^0.4.3",
|
|
274
274
|
"react-virtuoso": "^4.14.1",
|
|
275
275
|
"react-wrap-balancer": "^1.1.1",
|
|
@@ -280,14 +280,14 @@
|
|
|
280
280
|
"rtl-detect": "^1.1.2",
|
|
281
281
|
"semver": "^7.7.3",
|
|
282
282
|
"sharp": "^0.34.4",
|
|
283
|
-
"shiki": "^3.
|
|
283
|
+
"shiki": "^3.14.0",
|
|
284
284
|
"ssrf-safe-fetch": "workspace:*",
|
|
285
285
|
"stripe": "^17.7.0",
|
|
286
|
-
"superjson": "^2.2.
|
|
287
|
-
"svix": "^1.
|
|
286
|
+
"superjson": "^2.2.5",
|
|
287
|
+
"svix": "^1.81.0",
|
|
288
288
|
"swr": "^2.3.6",
|
|
289
289
|
"systemjs": "^6.15.1",
|
|
290
|
-
"tokenx": "^1.
|
|
290
|
+
"tokenx": "^1.2.0",
|
|
291
291
|
"ts-md5": "^2.0.1",
|
|
292
292
|
"ua-parser-js": "^1.0.41",
|
|
293
293
|
"unstructured-client": "^0.19.0",
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
"devDependencies": {
|
|
305
305
|
"@commitlint/cli": "^19.8.1",
|
|
306
306
|
"@edge-runtime/vm": "^5.0.0",
|
|
307
|
-
"@huggingface/tasks": "^0.19.
|
|
307
|
+
"@huggingface/tasks": "^0.19.61",
|
|
308
308
|
"@lobechat/types": "workspace:*",
|
|
309
309
|
"@lobehub/i18n-cli": "^1.25.1",
|
|
310
310
|
"@lobehub/lint": "^1.26.2",
|
|
@@ -313,13 +313,13 @@
|
|
|
313
313
|
"@next/bundle-analyzer": "^16.0.1",
|
|
314
314
|
"@next/eslint-plugin-next": "^15.5.6",
|
|
315
315
|
"@peculiar/webcrypto": "^1.5.0",
|
|
316
|
-
"@playwright/test": "^1.
|
|
316
|
+
"@playwright/test": "^1.56.1",
|
|
317
317
|
"@prettier/sync": "^0.6.1",
|
|
318
318
|
"@semantic-release/exec": "^6.0.3",
|
|
319
319
|
"@testing-library/jest-dom": "^6.9.1",
|
|
320
320
|
"@testing-library/react": "^16.3.0",
|
|
321
321
|
"@testing-library/user-event": "^14.6.1",
|
|
322
|
-
"@types/chroma-js": "^3.1.
|
|
322
|
+
"@types/chroma-js": "^3.1.2",
|
|
323
323
|
"@types/crypto-js": "^4.2.2",
|
|
324
324
|
"@types/debug": "^4.1.12",
|
|
325
325
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -327,11 +327,11 @@
|
|
|
327
327
|
"@types/json-schema": "^7.0.15",
|
|
328
328
|
"@types/lodash": "^4.17.20",
|
|
329
329
|
"@types/lodash-es": "^4.17.12",
|
|
330
|
-
"@types/node": "^
|
|
330
|
+
"@types/node": "^24.10.0",
|
|
331
331
|
"@types/numeral": "^2.0.5",
|
|
332
332
|
"@types/oidc-provider": "^9.5.0",
|
|
333
333
|
"@types/pdfkit": "^0.17.3",
|
|
334
|
-
"@types/pg": "^8.15.
|
|
334
|
+
"@types/pg": "^8.15.6",
|
|
335
335
|
"@types/react": "19.2.2",
|
|
336
336
|
"@types/react-dom": "19.2.2",
|
|
337
337
|
"@types/rtl-detect": "^1.0.3",
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"@types/ua-parser-js": "^0.7.39",
|
|
341
341
|
"@types/unist": "^3.0.3",
|
|
342
342
|
"@types/ws": "^8.18.1",
|
|
343
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
343
|
+
"@typescript/native-preview": "7.0.0-dev.20251102.1",
|
|
344
344
|
"@vitest/coverage-v8": "^3.2.4",
|
|
345
345
|
"ajv-keywords": "^5.1.0",
|
|
346
346
|
"commitlint": "^19.8.1",
|
|
@@ -352,24 +352,24 @@
|
|
|
352
352
|
"dotenv-expand": "^12.0.3",
|
|
353
353
|
"dpdm-fast": "^1.0.14",
|
|
354
354
|
"drizzle-dbml-generator": "^0.10.0",
|
|
355
|
-
"drizzle-kit": "^0.31.
|
|
355
|
+
"drizzle-kit": "^0.31.6",
|
|
356
356
|
"eslint": "^8.57.1",
|
|
357
357
|
"eslint-plugin-mdx": "^3.6.2",
|
|
358
|
-
"fake-indexeddb": "^6.2.
|
|
358
|
+
"fake-indexeddb": "^6.2.4",
|
|
359
359
|
"fs-extra": "^11.3.2",
|
|
360
360
|
"glob": "^11.0.3",
|
|
361
|
-
"happy-dom": "^20.0.
|
|
361
|
+
"happy-dom": "^20.0.10",
|
|
362
362
|
"husky": "^9.1.7",
|
|
363
363
|
"import-in-the-middle": "^1.15.0",
|
|
364
364
|
"just-diff": "^6.0.2",
|
|
365
|
-
"lint-staged": "^
|
|
365
|
+
"lint-staged": "^16.2.6",
|
|
366
366
|
"lodash": "^4.17.21",
|
|
367
367
|
"markdown-table": "^3.0.4",
|
|
368
368
|
"mcp-hello-world": "^1.1.2",
|
|
369
369
|
"mime": "^4.1.0",
|
|
370
370
|
"node-fetch": "^3.3.2",
|
|
371
|
-
"node-gyp": "^11.
|
|
372
|
-
"openapi-typescript": "^7.
|
|
371
|
+
"node-gyp": "^11.5.0",
|
|
372
|
+
"openapi-typescript": "^7.10.1",
|
|
373
373
|
"p-map": "^7.0.3",
|
|
374
374
|
"prettier": "^3.6.2",
|
|
375
375
|
"remark-cli": "^12.0.1",
|
|
@@ -381,14 +381,14 @@
|
|
|
381
381
|
"serwist": "^9.2.1",
|
|
382
382
|
"stylelint": "^15.11.0",
|
|
383
383
|
"tsx": "^4.20.6",
|
|
384
|
-
"type-fest": "^
|
|
384
|
+
"type-fest": "^5.1.0",
|
|
385
385
|
"typescript": "^5.9.3",
|
|
386
386
|
"unified": "^11.0.5",
|
|
387
387
|
"unist-util-visit": "^5.0.0",
|
|
388
|
-
"vite": "^7.1.
|
|
388
|
+
"vite": "^7.1.12",
|
|
389
389
|
"vitest": "^3.2.4"
|
|
390
390
|
},
|
|
391
|
-
"packageManager": "pnpm@10.
|
|
391
|
+
"packageManager": "pnpm@10.20.0",
|
|
392
392
|
"publishConfig": {
|
|
393
393
|
"access": "public",
|
|
394
394
|
"registry": "https://registry.npmjs.org"
|
|
@@ -4,12 +4,12 @@ import { BRANDING_NAME, ORG_NAME } from './branding';
|
|
|
4
4
|
|
|
5
5
|
export const CURRENT_VERSION = pkg.version;
|
|
6
6
|
|
|
7
|
-
export const isServerMode =
|
|
8
|
-
export const isUsePgliteDB =
|
|
7
|
+
export const isServerMode = true;
|
|
8
|
+
export const isUsePgliteDB = false;
|
|
9
9
|
|
|
10
10
|
export const isDesktop = process.env.NEXT_PUBLIC_IS_DESKTOP_APP === '1';
|
|
11
11
|
|
|
12
|
-
export const isDeprecatedEdition =
|
|
12
|
+
export const isDeprecatedEdition = false;
|
|
13
13
|
|
|
14
14
|
// @ts-ignore
|
|
15
15
|
export const isCustomBranding = BRANDING_NAME !== 'LobeHub';
|
|
@@ -12,12 +12,13 @@ import {
|
|
|
12
12
|
topics,
|
|
13
13
|
users,
|
|
14
14
|
} from '@/database/schemas';
|
|
15
|
-
import { CURRENT_CONFIG_VERSION } from '@/migrations';
|
|
16
15
|
import { ImporterEntryData } from '@/types/importer';
|
|
17
16
|
|
|
18
17
|
import { DeprecatedDataImporterRepos as DataImporterRepos } from '../index';
|
|
19
18
|
import mockImportData from './fixtures/messages.json';
|
|
20
19
|
|
|
20
|
+
const CURRENT_CONFIG_VERSION = 7;
|
|
21
|
+
|
|
21
22
|
const serverDB = await getTestDBInstance();
|
|
22
23
|
|
|
23
24
|
const userId = 'test-user-id';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { and, eq, inArray, sql } from 'drizzle-orm';
|
|
2
2
|
|
|
3
|
-
import { ImportResult } from '@/services/import/_deprecated';
|
|
4
3
|
import { ImporterEntryData } from '@/types/importer';
|
|
5
4
|
import { sanitizeUTF8 } from '@/utils/sanitizeUTF8';
|
|
6
5
|
|
|
@@ -16,6 +15,13 @@ import {
|
|
|
16
15
|
} from '../../../schemas';
|
|
17
16
|
import { LobeChatDatabase } from '../../../type';
|
|
18
17
|
|
|
18
|
+
interface ImportResult {
|
|
19
|
+
added: number;
|
|
20
|
+
errors: number;
|
|
21
|
+
skips: number;
|
|
22
|
+
updated?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
export class DeprecatedDataImporterRepos {
|
|
20
26
|
private userId: string;
|
|
21
27
|
private db: LobeChatDatabase;
|
|
@@ -40,6 +40,15 @@ vi.mock('@/const/auth', () => ({
|
|
|
40
40
|
},
|
|
41
41
|
}));
|
|
42
42
|
|
|
43
|
+
// Mock version constants
|
|
44
|
+
vi.mock('@/const/version', async (importOriginal) => {
|
|
45
|
+
const actual = await importOriginal<typeof import('@/const/version')>();
|
|
46
|
+
return {
|
|
47
|
+
...actual,
|
|
48
|
+
isServerMode: false,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
|
|
43
52
|
afterEach(() => {
|
|
44
53
|
enableAuth = true;
|
|
45
54
|
enableClerk = true;
|
|
@@ -2,7 +2,6 @@ import { PropsWithChildren, Suspense } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import Loading from '@/components/Loading/BrandTextLoading';
|
|
4
4
|
import MobileContentLayout from '@/components/server/MobileNavLayout';
|
|
5
|
-
import InitClientDB from '@/features/InitClientDB';
|
|
6
5
|
|
|
7
6
|
import Header from './features/Header';
|
|
8
7
|
|
|
@@ -10,7 +9,6 @@ const Layout = ({ children }: PropsWithChildren) => {
|
|
|
10
9
|
return (
|
|
11
10
|
<MobileContentLayout header={<Header />} withNav>
|
|
12
11
|
<Suspense fallback={<Loading />}>{children}</Suspense>
|
|
13
|
-
<InitClientDB />
|
|
14
12
|
</MobileContentLayout>
|
|
15
13
|
);
|
|
16
14
|
};
|