@lobehub/lobehub 2.0.0-next.1 → 2.0.0-next.11
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 +12 -10
- package/.github/workflows/docker.yml +25 -20
- package/.github/workflows/e2e.yml +3 -3
- package/.github/workflows/release-desktop-beta.yml +8 -8
- package/.github/workflows/release.yml +1 -1
- package/.github/workflows/test.yml +4 -4
- package/CHANGELOG.md +261 -0
- package/apps/desktop/src/main/utils/next-electron-rsc.ts +7 -5
- package/changelog/v1.json +82 -0
- package/docs/development/database-schema.dbml +11 -1
- package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/auth0.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/github.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/google.mdx +32 -29
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +5 -3
- package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +5 -3
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/okta.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/okta.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth.mdx +32 -21
- package/docs/self-hosting/advanced/auth.zh-CN.mdx +30 -19
- package/docs/self-hosting/advanced/online-search.mdx +30 -25
- package/docs/self-hosting/advanced/online-search.zh-CN.mdx +25 -23
- package/locales/ar/models.json +15 -6
- package/locales/bg-BG/models.json +15 -6
- package/locales/de-DE/models.json +15 -6
- package/locales/en-US/models.json +15 -6
- package/locales/es-ES/models.json +15 -6
- package/locales/fa-IR/models.json +15 -6
- package/locales/fr-FR/models.json +15 -6
- package/locales/it-IT/models.json +15 -6
- package/locales/ja-JP/models.json +15 -6
- package/locales/ko-KR/models.json +21 -12
- package/locales/nl-NL/models.json +15 -6
- package/locales/pl-PL/models.json +15 -6
- package/locales/pt-BR/models.json +15 -6
- package/locales/ru-RU/models.json +15 -6
- package/locales/tr-TR/models.json +15 -6
- package/locales/vi-VN/models.json +15 -6
- package/locales/zh-CN/models.json +15 -6
- package/locales/zh-TW/models.json +15 -6
- package/next.config.ts +2 -3
- package/package.json +17 -23
- package/packages/const/src/index.ts +0 -1
- package/packages/const/src/models.ts +13 -0
- package/packages/const/src/url.ts +1 -4
- package/packages/context-engine/src/index.ts +1 -6
- package/packages/context-engine/src/processors/GroupMessageFlatten.ts +12 -2
- package/packages/context-engine/src/processors/__tests__/GroupMessageFlatten.test.ts +73 -9
- package/packages/context-engine/src/providers/index.ts +0 -2
- package/packages/database/migrations/0041_improve_index.sql +10 -0
- package/packages/database/migrations/meta/0041_snapshot.json +7784 -0
- package/packages/database/migrations/meta/_journal.json +7 -0
- package/packages/database/package.json +1 -1
- package/packages/database/src/core/migrations.json +17 -0
- package/packages/database/src/models/__tests__/message.grouping.test.ts +812 -0
- package/packages/database/src/models/__tests__/message.test.ts +322 -170
- package/packages/database/src/models/message.ts +62 -24
- package/packages/database/src/models/session.ts +60 -19
- package/packages/database/src/schemas/agent.ts +10 -11
- package/packages/database/src/schemas/message.ts +5 -1
- package/packages/database/src/schemas/relations.ts +6 -4
- package/packages/database/src/schemas/session.ts +2 -0
- package/packages/database/src/schemas/topic.ts +6 -1
- package/packages/database/src/utils/__tests__/groupMessages.test.ts +145 -2
- package/packages/database/src/utils/groupMessages.ts +7 -5
- package/packages/electron-client-ipc/package.json +4 -1
- package/packages/file-loaders/package.json +1 -0
- package/packages/model-bank/src/aiModels/anthropic.ts +0 -63
- package/packages/model-bank/src/aiModels/azure.ts +155 -0
- package/packages/model-bank/src/aiModels/bedrock.ts +44 -0
- package/packages/model-bank/src/aiModels/higress.ts +0 -55
- package/packages/model-bank/src/aiModels/infiniai.ts +21 -0
- package/packages/model-bank/src/aiModels/ollamacloud.ts +13 -0
- package/packages/model-bank/src/aiModels/siliconcloud.ts +19 -0
- package/packages/model-runtime/src/core/openaiCompatibleFactory/createImage.ts +1 -1
- package/packages/model-runtime/src/core/openaiCompatibleFactory/index.test.ts +33 -3
- package/packages/model-runtime/src/core/parameterResolver.ts +3 -0
- package/packages/model-runtime/src/core/streams/openai/__snapshots__/responsesStream.test.ts.snap +0 -38
- package/packages/model-runtime/src/providers/azureOpenai/index.ts +2 -1
- package/packages/model-runtime/src/providers/minimax/index.ts +5 -5
- package/packages/model-runtime/src/providers/search1api/index.test.ts +2 -2
- package/packages/types/src/message/common/base.ts +13 -0
- package/packages/types/src/message/common/image.ts +8 -0
- package/packages/types/src/message/common/metadata.ts +39 -0
- package/packages/types/src/message/common/tools.ts +10 -0
- package/packages/types/src/message/db/params.ts +47 -1
- package/packages/types/src/message/ui/chat.ts +4 -1
- package/packages/types/src/search.ts +16 -0
- package/packages/web-crawler/src/crawImpl/firecrawl.ts +39 -12
- package/scripts/migrateServerDB/index.ts +2 -1
- package/src/app/(backend)/oidc/consent/route.ts +0 -1
- package/src/app/(backend)/webapi/revalidate/route.ts +1 -1
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/V1Mobile/index.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/V1Mobile/useSend.ts +6 -4
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/useSend.ts +15 -10
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/index.tsx +4 -2
- package/src/app/[variants]/(main)/settings/_layout/SettingsContent.tsx +0 -3
- package/src/app/[variants]/layout.tsx +1 -0
- package/src/app/sitemap.tsx +7 -1
- package/src/components/Thinking/index.tsx +4 -3
- package/src/config/modelProviders/anthropic.ts +0 -23
- package/src/config/modelProviders/higress.ts +0 -23
- package/src/config/modelProviders/minimax.ts +1 -1
- package/src/config/modelProviders/qiniu.ts +1 -1
- package/src/envs/auth.ts +0 -179
- package/src/features/AgentSetting/AgentPlugin/index.tsx +21 -13
- package/src/features/ChatInput/ActionBar/STT/browser.tsx +2 -2
- package/src/features/ChatInput/ActionBar/STT/openai.tsx +2 -2
- package/src/features/ChatInput/ActionBar/Tools/useControls.tsx +1 -3
- package/src/features/Conversation/Error/ErrorJsonViewer.tsx +4 -3
- package/src/features/Conversation/Error/OllamaBizError/index.tsx +7 -2
- package/src/features/Conversation/Error/index.tsx +15 -5
- package/src/features/Conversation/MarkdownElements/LobeArtifact/Render/index.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/Extra/index.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/MessageContent.tsx +5 -3
- package/src/features/Conversation/Messages/Assistant/Tool/Inspector/BuiltinPluginTitle.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/Tool/Inspector/ToolTitle.tsx +4 -2
- package/src/features/Conversation/Messages/Assistant/Tool/Render/CustomRender.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/Tool/Render/index.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/Tool/index.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/index.tsx +4 -4
- package/src/features/Conversation/Messages/Default.tsx +2 -2
- package/src/features/Conversation/Messages/User/Extra.tsx +2 -2
- package/src/features/Conversation/Messages/User/index.tsx +4 -4
- package/src/features/Conversation/Messages/index.tsx +3 -3
- package/src/features/Conversation/components/AutoScroll.tsx +2 -2
- package/src/features/Conversation/components/Extras/Usage/UsageDetail/index.tsx +9 -6
- package/src/features/PluginTag/index.tsx +1 -3
- package/src/features/PluginsUI/Render/BuiltinType/index.test.tsx +37 -28
- package/src/features/Portal/Artifacts/Body/index.tsx +2 -2
- package/src/libs/next-auth/auth.config.ts +1 -1
- package/src/libs/next-auth/sso-providers/auth0.ts +0 -7
- package/src/libs/next-auth/sso-providers/authelia.ts +3 -5
- package/src/libs/next-auth/sso-providers/authentik.ts +0 -7
- package/src/libs/next-auth/sso-providers/cloudflare-zero-trust.ts +3 -6
- package/src/libs/next-auth/sso-providers/cognito.ts +1 -5
- package/src/libs/next-auth/sso-providers/generic-oidc.ts +3 -5
- package/src/libs/next-auth/sso-providers/github.ts +0 -6
- package/src/libs/next-auth/sso-providers/google.ts +0 -2
- package/src/libs/next-auth/sso-providers/index.ts +0 -2
- package/src/libs/next-auth/sso-providers/keycloak.ts +0 -3
- package/src/libs/next-auth/sso-providers/logto.ts +3 -5
- package/src/libs/next-auth/sso-providers/okta.ts +0 -4
- package/src/libs/next-auth/sso-providers/zitadel.ts +0 -7
- package/src/libs/oidc-provider/provider.ts +1 -1
- package/src/server/modules/AssistantStore/index.ts +1 -1
- package/src/server/modules/ModelRuntime/trace.ts +11 -4
- package/src/server/routers/lambda/message.ts +14 -3
- package/src/server/routers/lambda/session.ts +8 -5
- package/src/server/services/search/impls/firecrawl/index.ts +51 -11
- package/src/server/services/search/impls/firecrawl/type.ts +60 -9
- package/src/services/chat/chat.test.ts +1 -40
- package/src/services/chat/contextEngineering.test.ts +0 -30
- package/src/services/chat/contextEngineering.ts +1 -12
- package/src/services/chat/index.ts +2 -7
- package/src/services/chat/types.ts +1 -1
- package/src/services/message/_deprecated.ts +1 -1
- package/src/services/message/client.ts +8 -2
- package/src/services/message/server.ts +7 -2
- package/src/services/message/type.ts +6 -1
- package/src/services/user/client.test.ts +4 -1
- package/src/store/chat/helpers.test.ts +99 -0
- package/src/store/chat/helpers.ts +21 -2
- package/src/store/chat/selectors.ts +1 -1
- package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +3 -3
- package/src/store/chat/slices/builtinTool/actions/index.ts +1 -4
- package/src/store/chat/slices/message/action.test.ts +5 -1
- package/src/store/chat/slices/message/action.ts +102 -14
- package/src/store/chat/slices/message/reducer.test.ts +363 -5
- package/src/store/chat/slices/message/reducer.ts +87 -3
- package/src/store/chat/slices/message/{selectors.test.ts → selectors/chat.test.ts} +266 -30
- package/src/store/chat/slices/message/{selectors.ts → selectors/chat.ts} +29 -79
- package/src/store/chat/slices/message/selectors/index.ts +2 -0
- package/src/store/chat/slices/message/selectors/messageState.test.ts +36 -0
- package/src/store/chat/slices/message/selectors/messageState.ts +80 -0
- package/src/store/chat/slices/plugin/action.test.ts +34 -132
- package/src/store/chat/slices/plugin/action.ts +1 -44
- package/src/store/tool/selectors/tool.test.ts +1 -1
- package/src/store/tool/selectors/tool.ts +6 -8
- package/src/store/tool/slices/builtin/action.test.ts +83 -35
- package/src/store/tool/slices/builtin/action.ts +0 -9
- package/src/store/tool/slices/builtin/selectors.test.ts +4 -30
- package/src/store/tool/slices/builtin/selectors.ts +15 -21
- package/src/tools/index.ts +0 -6
- package/src/tools/renders.ts +0 -3
- package/src/tools/web-browsing/Portal/Search/Footer.tsx +2 -2
- package/tsconfig.json +9 -2
- package/packages/const/src/guide.ts +0 -89
- package/packages/context-engine/src/providers/InboxGuide.ts +0 -102
- package/packages/context-engine/src/providers/__tests__/InboxGuideProvider.test.ts +0 -121
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Azure/index.tsx +0 -93
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Bedrock/index.tsx +0 -70
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Cloudflare/index.tsx +0 -39
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Github/index.tsx +0 -52
- package/src/app/[variants]/(main)/settings/llm/ProviderList/HuggingFace/index.tsx +0 -52
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Ollama/index.tsx +0 -20
- package/src/app/[variants]/(main)/settings/llm/ProviderList/OpenAI/index.tsx +0 -17
- package/src/app/[variants]/(main)/settings/llm/ProviderList/providers.tsx +0 -132
- package/src/app/[variants]/(main)/settings/llm/components/Checker.tsx +0 -118
- package/src/app/[variants]/(main)/settings/llm/components/ProviderConfig/index.tsx +0 -303
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/CustomModelOption.tsx +0 -98
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/Form.tsx +0 -104
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/index.tsx +0 -77
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +0 -105
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/Option.tsx +0 -68
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/index.tsx +0 -146
- package/src/app/[variants]/(main)/settings/llm/const.ts +0 -20
- package/src/app/[variants]/(main)/settings/llm/features/Footer.tsx +0 -35
- package/src/app/[variants]/(main)/settings/llm/index.tsx +0 -30
- package/src/app/[variants]/(main)/settings/llm/type.ts +0 -5
- package/src/envs/__tests__/auth.test.ts +0 -200
- package/src/libs/next-auth/sso-providers/azure-ad.ts +0 -33
- package/src/services/chat/__snapshots__/chat.test.ts.snap +0 -110
- package/src/store/chat/slices/builtinTool/actions/__tests__/dalle.test.ts +0 -121
- package/src/store/chat/slices/builtinTool/actions/dalle.ts +0 -124
- package/src/tools/dalle/Render/GalleyGrid.tsx +0 -60
- package/src/tools/dalle/Render/Item/EditMode.tsx +0 -66
- package/src/tools/dalle/Render/Item/Error.tsx +0 -49
- package/src/tools/dalle/Render/Item/Image.tsx +0 -44
- package/src/tools/dalle/Render/Item/ImageFileItem.tsx +0 -57
- package/src/tools/dalle/Render/Item/index.tsx +0 -88
- package/src/tools/dalle/Render/ToolBar.tsx +0 -56
- package/src/tools/dalle/Render/index.tsx +0 -52
- package/src/tools/dalle/index.ts +0 -92
- /package/src/{middleware.ts → proxy.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: Desktop PR Build
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
4
|
+
pull_request_target:
|
|
5
5
|
types: [synchronize, labeled, unlabeled] # PR 更新或标签变化时触发
|
|
6
6
|
|
|
7
7
|
# 确保同一时间只运行一个相同的 workflow,取消正在进行的旧的运行
|
|
@@ -10,7 +10,9 @@ concurrency:
|
|
|
10
10
|
cancel-in-progress: true
|
|
11
11
|
|
|
12
12
|
# Add default permissions
|
|
13
|
-
permissions:
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
pull-requests: write
|
|
14
16
|
|
|
15
17
|
env:
|
|
16
18
|
PR_TAG_PREFIX: pr- # PR 构建版本的前缀标识
|
|
@@ -28,7 +30,7 @@ jobs:
|
|
|
28
30
|
fetch-depth: 0
|
|
29
31
|
|
|
30
32
|
- name: Setup Node.js
|
|
31
|
-
uses: actions/setup-node@
|
|
33
|
+
uses: actions/setup-node@v6
|
|
32
34
|
with:
|
|
33
35
|
node-version: 22
|
|
34
36
|
package-manager-cache: false
|
|
@@ -62,7 +64,7 @@ jobs:
|
|
|
62
64
|
fetch-depth: 0
|
|
63
65
|
|
|
64
66
|
- name: Setup Node.js
|
|
65
|
-
uses: actions/setup-node@
|
|
67
|
+
uses: actions/setup-node@v6
|
|
66
68
|
with:
|
|
67
69
|
node-version: 22
|
|
68
70
|
package-manager-cache: false
|
|
@@ -107,7 +109,7 @@ jobs:
|
|
|
107
109
|
run_install: false
|
|
108
110
|
|
|
109
111
|
- name: Setup Node.js
|
|
110
|
-
uses: actions/setup-node@
|
|
112
|
+
uses: actions/setup-node@v6
|
|
111
113
|
with:
|
|
112
114
|
node-version: 22
|
|
113
115
|
package-manager-cache: false
|
|
@@ -199,7 +201,7 @@ jobs:
|
|
|
199
201
|
|
|
200
202
|
# 上传构建产物
|
|
201
203
|
- name: Upload artifact
|
|
202
|
-
uses: actions/upload-artifact@
|
|
204
|
+
uses: actions/upload-artifact@v5
|
|
203
205
|
with:
|
|
204
206
|
name: release-${{ matrix.os }}
|
|
205
207
|
path: |
|
|
@@ -226,7 +228,7 @@ jobs:
|
|
|
226
228
|
uses: actions/checkout@v5
|
|
227
229
|
|
|
228
230
|
- name: Setup Node.js
|
|
229
|
-
uses: actions/setup-node@
|
|
231
|
+
uses: actions/setup-node@v6
|
|
230
232
|
with:
|
|
231
233
|
node-version: 22
|
|
232
234
|
package-manager-cache: false
|
|
@@ -238,7 +240,7 @@ jobs:
|
|
|
238
240
|
|
|
239
241
|
# 下载所有平台的构建产物
|
|
240
242
|
- name: Download artifacts
|
|
241
|
-
uses: actions/download-artifact@
|
|
243
|
+
uses: actions/download-artifact@v6
|
|
242
244
|
with:
|
|
243
245
|
path: release
|
|
244
246
|
pattern: release-*
|
|
@@ -264,7 +266,7 @@ jobs:
|
|
|
264
266
|
|
|
265
267
|
# 上传合并后的构建产物
|
|
266
268
|
- name: Upload artifacts with merged macOS files
|
|
267
|
-
uses: actions/upload-artifact@
|
|
269
|
+
uses: actions/upload-artifact@v5
|
|
268
270
|
with:
|
|
269
271
|
name: merged-release-pr
|
|
270
272
|
path: release/
|
|
@@ -287,7 +289,7 @@ jobs:
|
|
|
287
289
|
|
|
288
290
|
# 下载合并后的构建产物
|
|
289
291
|
- name: Download merged artifacts
|
|
290
|
-
uses: actions/download-artifact@
|
|
292
|
+
uses: actions/download-artifact@v6
|
|
291
293
|
with:
|
|
292
294
|
name: merged-release-pr
|
|
293
295
|
path: release
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
name: Publish Docker Image
|
|
2
2
|
permissions:
|
|
3
3
|
contents: read
|
|
4
|
+
pull-requests: write
|
|
4
5
|
|
|
5
6
|
on:
|
|
6
7
|
workflow_dispatch:
|
|
7
8
|
release:
|
|
8
9
|
types: [published]
|
|
9
|
-
|
|
10
|
+
pull_request_target:
|
|
10
11
|
types: [synchronize, labeled, unlabeled]
|
|
11
12
|
|
|
12
13
|
concurrency:
|
|
13
14
|
group: ${{ github.ref }}-${{ github.workflow }}
|
|
14
|
-
|
|
15
|
+
# PR 构建时取消旧的运行,但 release 构建不取消
|
|
16
|
+
cancel-in-progress: ${{ github.event_name != 'release' }}
|
|
15
17
|
|
|
16
18
|
env:
|
|
17
19
|
REGISTRY_IMAGE: lobehub/lobehub
|
|
@@ -21,9 +23,10 @@ jobs:
|
|
|
21
23
|
build:
|
|
22
24
|
# 添加 PR label 触发条件
|
|
23
25
|
if: |
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
github.event_name
|
|
26
|
+
github.event_name == 'release' ||
|
|
27
|
+
github.event_name == 'workflow_dispatch' ||
|
|
28
|
+
(github.event_name == 'pull_request_target' &&
|
|
29
|
+
contains(github.event.pull_request.labels.*.name, 'trigger:build-docker'))
|
|
27
30
|
|
|
28
31
|
strategy:
|
|
29
32
|
matrix:
|
|
@@ -50,11 +53,12 @@ jobs:
|
|
|
50
53
|
|
|
51
54
|
# 为 PR 生成特殊的 tag
|
|
52
55
|
- name: Generate PR metadata
|
|
53
|
-
if: github.event_name == '
|
|
56
|
+
if: github.event_name == 'pull_request_target'
|
|
54
57
|
id: pr_meta
|
|
58
|
+
env:
|
|
59
|
+
BRANCH_NAME: ${{ github.head_ref }}
|
|
55
60
|
run: |
|
|
56
|
-
|
|
57
|
-
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
|
|
61
|
+
sanitized_branch=$(echo "${BRANCH_NAME}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
|
|
58
62
|
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
|
59
63
|
|
|
60
64
|
- name: Docker meta
|
|
@@ -64,10 +68,10 @@ jobs:
|
|
|
64
68
|
images: ${{ env.REGISTRY_IMAGE }}
|
|
65
69
|
tags: |
|
|
66
70
|
# PR 构建使用特殊的 tag
|
|
67
|
-
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == '
|
|
71
|
+
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request_target' }}
|
|
68
72
|
# release 构建使用版本号
|
|
69
|
-
type=semver,pattern={{version}},enable=${{ github.event_name != '
|
|
70
|
-
type=raw,value=latest,enable=${{ github.event_name != '
|
|
73
|
+
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request_target' }}
|
|
74
|
+
type=raw,value=latest,enable=${{ github.event_name != 'pull_request_target' }}
|
|
71
75
|
|
|
72
76
|
- name: Docker login
|
|
73
77
|
uses: docker/login-action@v3
|
|
@@ -100,7 +104,7 @@ jobs:
|
|
|
100
104
|
touch "/tmp/digests/${digest#sha256:}"
|
|
101
105
|
|
|
102
106
|
- name: Upload artifact
|
|
103
|
-
uses: actions/upload-artifact@
|
|
107
|
+
uses: actions/upload-artifact@v5
|
|
104
108
|
with:
|
|
105
109
|
name: digest-${{ env.PLATFORM_PAIR }}
|
|
106
110
|
path: /tmp/digests/*
|
|
@@ -118,7 +122,7 @@ jobs:
|
|
|
118
122
|
fetch-depth: 0
|
|
119
123
|
|
|
120
124
|
- name: Download digests
|
|
121
|
-
uses: actions/download-artifact@
|
|
125
|
+
uses: actions/download-artifact@v6
|
|
122
126
|
with:
|
|
123
127
|
path: /tmp/digests
|
|
124
128
|
pattern: digest-*
|
|
@@ -129,11 +133,12 @@ jobs:
|
|
|
129
133
|
|
|
130
134
|
# 为 merge job 添加 PR metadata 生成
|
|
131
135
|
- name: Generate PR metadata
|
|
132
|
-
if: github.event_name == '
|
|
136
|
+
if: github.event_name == 'pull_request_target'
|
|
133
137
|
id: pr_meta
|
|
138
|
+
env:
|
|
139
|
+
BRANCH_NAME: ${{ github.head_ref }}
|
|
134
140
|
run: |
|
|
135
|
-
|
|
136
|
-
sanitized_branch=$(echo "${branch_name}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
|
|
141
|
+
sanitized_branch=$(echo "${BRANCH_NAME}" | sed -E 's/[^a-zA-Z0-9_.-]+/-/g')
|
|
137
142
|
echo "pr_tag=${sanitized_branch}-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
|
138
143
|
|
|
139
144
|
- name: Docker meta
|
|
@@ -142,9 +147,9 @@ jobs:
|
|
|
142
147
|
with:
|
|
143
148
|
images: ${{ env.REGISTRY_IMAGE }}
|
|
144
149
|
tags: |
|
|
145
|
-
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == '
|
|
146
|
-
type=semver,pattern={{version}},enable=${{ github.event_name != '
|
|
147
|
-
type=raw,value=latest,enable=${{ github.event_name != '
|
|
150
|
+
type=raw,value=${{ env.PR_TAG_PREFIX }}${{ steps.pr_meta.outputs.pr_tag }},enable=${{ github.event_name == 'pull_request_target' }}
|
|
151
|
+
type=semver,pattern={{version}},enable=${{ github.event_name != 'pull_request_target' }}
|
|
152
|
+
type=raw,value=latest,enable=${{ github.event_name != 'pull_request_target' }}
|
|
148
153
|
|
|
149
154
|
- name: Docker login
|
|
150
155
|
uses: docker/login-action@v3
|
|
@@ -163,7 +168,7 @@ jobs:
|
|
|
163
168
|
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
|
|
164
169
|
|
|
165
170
|
- name: Comment on PR with Docker build info
|
|
166
|
-
if: github.event_name == '
|
|
171
|
+
if: github.event_name == 'pull_request_target'
|
|
167
172
|
uses: actions/github-script@v8
|
|
168
173
|
with:
|
|
169
174
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -17,7 +17,7 @@ jobs:
|
|
|
17
17
|
timeout-minutes: 25
|
|
18
18
|
steps:
|
|
19
19
|
- name: Checkout
|
|
20
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@v5
|
|
21
21
|
|
|
22
22
|
- name: Setup Bun
|
|
23
23
|
uses: oven-sh/setup-bun@v2
|
|
@@ -37,7 +37,7 @@ jobs:
|
|
|
37
37
|
|
|
38
38
|
- name: Upload Cucumber HTML report (on failure)
|
|
39
39
|
if: failure()
|
|
40
|
-
uses: actions/upload-artifact@
|
|
40
|
+
uses: actions/upload-artifact@v5
|
|
41
41
|
with:
|
|
42
42
|
name: cucumber-report
|
|
43
43
|
path: e2e/reports
|
|
@@ -45,7 +45,7 @@ jobs:
|
|
|
45
45
|
|
|
46
46
|
- name: Upload screenshots (on failure)
|
|
47
47
|
if: failure()
|
|
48
|
-
uses: actions/upload-artifact@
|
|
48
|
+
uses: actions/upload-artifact@v5
|
|
49
49
|
with:
|
|
50
50
|
name: test-screenshots
|
|
51
51
|
path: e2e/screenshots
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
fetch-depth: 0
|
|
25
25
|
|
|
26
26
|
- name: Setup Node.js
|
|
27
|
-
uses: actions/setup-node@
|
|
27
|
+
uses: actions/setup-node@v6
|
|
28
28
|
with:
|
|
29
29
|
node-version: 22
|
|
30
30
|
package-manager-cache: false
|
|
@@ -53,7 +53,7 @@ jobs:
|
|
|
53
53
|
fetch-depth: 0
|
|
54
54
|
|
|
55
55
|
- name: Setup Node.js
|
|
56
|
-
uses: actions/setup-node@
|
|
56
|
+
uses: actions/setup-node@v6
|
|
57
57
|
with:
|
|
58
58
|
node-version: 22
|
|
59
59
|
package-manager-cache: false
|
|
@@ -94,7 +94,7 @@ jobs:
|
|
|
94
94
|
run_install: false
|
|
95
95
|
|
|
96
96
|
- name: Setup Node.js
|
|
97
|
-
uses: actions/setup-node@
|
|
97
|
+
uses: actions/setup-node@v6
|
|
98
98
|
with:
|
|
99
99
|
node-version: 22
|
|
100
100
|
package-manager-cache: false
|
|
@@ -181,7 +181,7 @@ jobs:
|
|
|
181
181
|
|
|
182
182
|
# 上传构建产物 (工作流处理重命名,不依赖 electron-builder 钩子)
|
|
183
183
|
- name: Upload artifact
|
|
184
|
-
uses: actions/upload-artifact@
|
|
184
|
+
uses: actions/upload-artifact@v5
|
|
185
185
|
with:
|
|
186
186
|
name: release-${{ matrix.os }}
|
|
187
187
|
path: |
|
|
@@ -208,7 +208,7 @@ jobs:
|
|
|
208
208
|
uses: actions/checkout@v5
|
|
209
209
|
|
|
210
210
|
- name: Setup Node.js
|
|
211
|
-
uses: actions/setup-node@
|
|
211
|
+
uses: actions/setup-node@v6
|
|
212
212
|
with:
|
|
213
213
|
node-version: 22
|
|
214
214
|
package-manager-cache: false
|
|
@@ -220,7 +220,7 @@ jobs:
|
|
|
220
220
|
|
|
221
221
|
# 下载所有平台的构建产物
|
|
222
222
|
- name: Download artifacts
|
|
223
|
-
uses: actions/download-artifact@
|
|
223
|
+
uses: actions/download-artifact@v6
|
|
224
224
|
with:
|
|
225
225
|
path: release
|
|
226
226
|
pattern: release-*
|
|
@@ -246,7 +246,7 @@ jobs:
|
|
|
246
246
|
|
|
247
247
|
# 上传合并后的构建产物
|
|
248
248
|
- name: Upload artifacts with merged macOS files
|
|
249
|
-
uses: actions/upload-artifact@
|
|
249
|
+
uses: actions/upload-artifact@v5
|
|
250
250
|
with:
|
|
251
251
|
name: merged-release
|
|
252
252
|
path: release/
|
|
@@ -262,7 +262,7 @@ jobs:
|
|
|
262
262
|
steps:
|
|
263
263
|
# 下载合并后的构建产物
|
|
264
264
|
- name: Download merged artifacts
|
|
265
|
-
uses: actions/download-artifact@
|
|
265
|
+
uses: actions/download-artifact@v6
|
|
266
266
|
with:
|
|
267
267
|
name: merged-release
|
|
268
268
|
path: release
|
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
28
28
|
- uses: actions/checkout@v5
|
|
29
29
|
|
|
30
30
|
- name: Setup Node.js
|
|
31
|
-
uses: actions/setup-node@
|
|
31
|
+
uses: actions/setup-node@v6
|
|
32
32
|
with:
|
|
33
33
|
node-version: 22
|
|
34
34
|
package-manager-cache: false
|
|
@@ -63,7 +63,7 @@ jobs:
|
|
|
63
63
|
- uses: actions/checkout@v5
|
|
64
64
|
|
|
65
65
|
- name: Setup Node.js
|
|
66
|
-
uses: actions/setup-node@
|
|
66
|
+
uses: actions/setup-node@v6
|
|
67
67
|
with:
|
|
68
68
|
node-version: 22
|
|
69
69
|
package-manager-cache: false
|
|
@@ -96,7 +96,7 @@ jobs:
|
|
|
96
96
|
- uses: actions/checkout@v5
|
|
97
97
|
|
|
98
98
|
- name: Setup Node.js
|
|
99
|
-
uses: actions/setup-node@
|
|
99
|
+
uses: actions/setup-node@v6
|
|
100
100
|
with:
|
|
101
101
|
node-version: 22
|
|
102
102
|
package-manager-cache: false
|
|
@@ -140,7 +140,7 @@ jobs:
|
|
|
140
140
|
- uses: actions/checkout@v5
|
|
141
141
|
|
|
142
142
|
- name: Setup Node.js
|
|
143
|
-
uses: actions/setup-node@
|
|
143
|
+
uses: actions/setup-node@v6
|
|
144
144
|
with:
|
|
145
145
|
node-version: 22
|
|
146
146
|
package-manager-cache: false
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,267 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.11](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.10...v2.0.0-next.11)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-11-02**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Smoothed model descriptions in ko-KR locales.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Smoothed model descriptions in ko-KR locales, closes [#9998](https://github.com/lobehub/lobe-chat/issues/9998) ([fde1d8b](https://github.com/lobehub/lobe-chat/commit/fde1d8b))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
## [Version 2.0.0-next.10](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.9...v2.0.0-next.10)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2025-11-02**</sup>
|
|
33
|
+
|
|
34
|
+
<br/>
|
|
35
|
+
|
|
36
|
+
<details>
|
|
37
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
38
|
+
|
|
39
|
+
</details>
|
|
40
|
+
|
|
41
|
+
<div align="right">
|
|
42
|
+
|
|
43
|
+
[](#readme-top)
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
## [Version 2.0.0-next.9](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.8...v2.0.0-next.9)
|
|
48
|
+
|
|
49
|
+
<sup>Released on **2025-11-02**</sup>
|
|
50
|
+
|
|
51
|
+
#### ♻ Code Refactoring
|
|
52
|
+
|
|
53
|
+
- **misc**: Remove dalle builtin plugin.
|
|
54
|
+
|
|
55
|
+
<br/>
|
|
56
|
+
|
|
57
|
+
<details>
|
|
58
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
59
|
+
|
|
60
|
+
#### Code refactoring
|
|
61
|
+
|
|
62
|
+
- **misc**: Remove dalle builtin plugin, closes [#9952](https://github.com/lobehub/lobe-chat/issues/9952) ([2d4d70a](https://github.com/lobehub/lobe-chat/commit/2d4d70a))
|
|
63
|
+
|
|
64
|
+
</details>
|
|
65
|
+
|
|
66
|
+
<div align="right">
|
|
67
|
+
|
|
68
|
+
[](#readme-top)
|
|
69
|
+
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
## [Version 2.0.0-next.8](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.7...v2.0.0-next.8)
|
|
73
|
+
|
|
74
|
+
<sup>Released on **2025-11-02**</sup>
|
|
75
|
+
|
|
76
|
+
#### 💄 Styles
|
|
77
|
+
|
|
78
|
+
- **misc**: Update i18n.
|
|
79
|
+
|
|
80
|
+
<br/>
|
|
81
|
+
|
|
82
|
+
<details>
|
|
83
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
84
|
+
|
|
85
|
+
#### Styles
|
|
86
|
+
|
|
87
|
+
- **misc**: Update i18n, closes [#9958](https://github.com/lobehub/lobe-chat/issues/9958) ([f49996c](https://github.com/lobehub/lobe-chat/commit/f49996c))
|
|
88
|
+
|
|
89
|
+
</details>
|
|
90
|
+
|
|
91
|
+
<div align="right">
|
|
92
|
+
|
|
93
|
+
[](#readme-top)
|
|
94
|
+
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
## [Version 2.0.0-next.7](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.6...v2.0.0-next.7)
|
|
98
|
+
|
|
99
|
+
<sup>Released on **2025-11-01**</sup>
|
|
100
|
+
|
|
101
|
+
#### ✨ Features
|
|
102
|
+
|
|
103
|
+
- **misc**: Upgrade to Next 16.
|
|
104
|
+
|
|
105
|
+
<br/>
|
|
106
|
+
|
|
107
|
+
<details>
|
|
108
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
109
|
+
|
|
110
|
+
#### What's improved
|
|
111
|
+
|
|
112
|
+
- **misc**: Upgrade to Next 16, closes [#9851](https://github.com/lobehub/lobe-chat/issues/9851) ([abb71ec](https://github.com/lobehub/lobe-chat/commit/abb71ec))
|
|
113
|
+
|
|
114
|
+
</details>
|
|
115
|
+
|
|
116
|
+
<div align="right">
|
|
117
|
+
|
|
118
|
+
[](#readme-top)
|
|
119
|
+
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
## [Version 2.0.0-next.6](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.5...v2.0.0-next.6)
|
|
123
|
+
|
|
124
|
+
<sup>Released on **2025-10-31**</sup>
|
|
125
|
+
|
|
126
|
+
#### 🐛 Bug Fixes
|
|
127
|
+
|
|
128
|
+
- **AssistantStore**: Add missing identifier parameter.
|
|
129
|
+
|
|
130
|
+
<br/>
|
|
131
|
+
|
|
132
|
+
<details>
|
|
133
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
134
|
+
|
|
135
|
+
#### What's fixed
|
|
136
|
+
|
|
137
|
+
- **AssistantStore**: Add missing identifier parameter, closes [#9948](https://github.com/lobehub/lobe-chat/issues/9948) ([2e40855](https://github.com/lobehub/lobe-chat/commit/2e40855))
|
|
138
|
+
|
|
139
|
+
</details>
|
|
140
|
+
|
|
141
|
+
<div align="right">
|
|
142
|
+
|
|
143
|
+
[](#readme-top)
|
|
144
|
+
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
## [Version 2.0.0-next.5](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.4...v2.0.0-next.5)
|
|
148
|
+
|
|
149
|
+
<sup>Released on **2025-10-31**</sup>
|
|
150
|
+
|
|
151
|
+
#### ♻ Code Refactoring
|
|
152
|
+
|
|
153
|
+
- **misc**: Migrating Firecrawl to v2.
|
|
154
|
+
|
|
155
|
+
<br/>
|
|
156
|
+
|
|
157
|
+
<details>
|
|
158
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
159
|
+
|
|
160
|
+
#### Code refactoring
|
|
161
|
+
|
|
162
|
+
- **misc**: Migrating Firecrawl to v2, closes [#9850](https://github.com/lobehub/lobe-chat/issues/9850) ([efb4c22](https://github.com/lobehub/lobe-chat/commit/efb4c22))
|
|
163
|
+
|
|
164
|
+
</details>
|
|
165
|
+
|
|
166
|
+
<div align="right">
|
|
167
|
+
|
|
168
|
+
[](#readme-top)
|
|
169
|
+
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
## [Version 2.0.0-next.4](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.3...v2.0.0-next.4)
|
|
173
|
+
|
|
174
|
+
<sup>Released on **2025-10-31**</sup>
|
|
175
|
+
|
|
176
|
+
#### ♻ Code Refactoring
|
|
177
|
+
|
|
178
|
+
- **misc**: Remove azure-ad auth provider.
|
|
179
|
+
|
|
180
|
+
#### 💄 Styles
|
|
181
|
+
|
|
182
|
+
- **misc**: Update i18n.
|
|
183
|
+
|
|
184
|
+
<br/>
|
|
185
|
+
|
|
186
|
+
<details>
|
|
187
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
188
|
+
|
|
189
|
+
#### Code refactoring
|
|
190
|
+
|
|
191
|
+
- **misc**: Remove azure-ad auth provider, closes [#9942](https://github.com/lobehub/lobe-chat/issues/9942) ([103c4d7](https://github.com/lobehub/lobe-chat/commit/103c4d7))
|
|
192
|
+
|
|
193
|
+
#### Styles
|
|
194
|
+
|
|
195
|
+
- **misc**: Update i18n, closes [#9944](https://github.com/lobehub/lobe-chat/issues/9944) ([3a6468f](https://github.com/lobehub/lobe-chat/commit/3a6468f))
|
|
196
|
+
|
|
197
|
+
</details>
|
|
198
|
+
|
|
199
|
+
<div align="right">
|
|
200
|
+
|
|
201
|
+
[](#readme-top)
|
|
202
|
+
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
## [Version 2.0.0-next.3](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.2...v2.0.0-next.3)
|
|
206
|
+
|
|
207
|
+
<sup>Released on **2025-10-30**</sup>
|
|
208
|
+
|
|
209
|
+
#### ♻ Code Refactoring
|
|
210
|
+
|
|
211
|
+
- **misc**: Remove llm page.
|
|
212
|
+
|
|
213
|
+
#### 💄 Styles
|
|
214
|
+
|
|
215
|
+
- **misc**: Add new bedrock model support, add pricing info for Azure GPT-5 series models.
|
|
216
|
+
|
|
217
|
+
<br/>
|
|
218
|
+
|
|
219
|
+
<details>
|
|
220
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
221
|
+
|
|
222
|
+
#### Code refactoring
|
|
223
|
+
|
|
224
|
+
- **misc**: Remove llm page, closes [#9940](https://github.com/lobehub/lobe-chat/issues/9940) ([6ec01a3](https://github.com/lobehub/lobe-chat/commit/6ec01a3))
|
|
225
|
+
|
|
226
|
+
#### Styles
|
|
227
|
+
|
|
228
|
+
- **misc**: Add new bedrock model support, closes [#9826](https://github.com/lobehub/lobe-chat/issues/9826) ([1b8a981](https://github.com/lobehub/lobe-chat/commit/1b8a981))
|
|
229
|
+
- **misc**: Add pricing info for Azure GPT-5 series models, closes [#9833](https://github.com/lobehub/lobe-chat/issues/9833) ([39a80c5](https://github.com/lobehub/lobe-chat/commit/39a80c5))
|
|
230
|
+
|
|
231
|
+
</details>
|
|
232
|
+
|
|
233
|
+
<div align="right">
|
|
234
|
+
|
|
235
|
+
[](#readme-top)
|
|
236
|
+
|
|
237
|
+
</div>
|
|
238
|
+
|
|
239
|
+
## [Version 2.0.0-next.2](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.1...v2.0.0-next.2)
|
|
240
|
+
|
|
241
|
+
<sup>Released on **2025-10-30**</sup>
|
|
242
|
+
|
|
243
|
+
#### 🐛 Bug Fixes
|
|
244
|
+
|
|
245
|
+
- **misc**: Hide marketplace link from Plugin List when market disabled, OIDC error when connecting to self-host instance, only include input_fidelity parameter for gpt-image-1..
|
|
246
|
+
|
|
247
|
+
<br/>
|
|
248
|
+
|
|
249
|
+
<details>
|
|
250
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
251
|
+
|
|
252
|
+
#### What's fixed
|
|
253
|
+
|
|
254
|
+
- **misc**: Hide marketplace link from Plugin List when market disabled, closes [#9929](https://github.com/lobehub/lobe-chat/issues/9929) ([e303979](https://github.com/lobehub/lobe-chat/commit/e303979))
|
|
255
|
+
- **misc**: OIDC error when connecting to self-host instance, closes [#9916](https://github.com/lobehub/lobe-chat/issues/9916) ([7a2ca19](https://github.com/lobehub/lobe-chat/commit/7a2ca19))
|
|
256
|
+
- **misc**: Only include input_fidelity parameter for gpt-image-1., closes [#9920](https://github.com/lobehub/lobe-chat/issues/9920) ([65dbc63](https://github.com/lobehub/lobe-chat/commit/65dbc63))
|
|
257
|
+
|
|
258
|
+
</details>
|
|
259
|
+
|
|
260
|
+
<div align="right">
|
|
261
|
+
|
|
262
|
+
[](#readme-top)
|
|
263
|
+
|
|
264
|
+
</div>
|
|
265
|
+
|
|
5
266
|
## [Version 2.0.0-next.1](https://github.com/lobehub/lobe-chat/compare/v1.143.0-next.2...v2.0.0-next.1)
|
|
6
267
|
|
|
7
268
|
<sup>Released on **2025-10-30**</sup>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// copy from https://github.com/kirill-konshin/next-electron-rsc
|
|
2
2
|
import { serialize as serializeCookie } from 'cookie';
|
|
3
|
-
import { type Protocol, type Session
|
|
3
|
+
import { type Protocol, type Session } from 'electron';
|
|
4
4
|
import type { NextConfig } from 'next';
|
|
5
5
|
import type NextNodeServer from 'next/dist/server/next-server';
|
|
6
6
|
import assert from 'node:assert';
|
|
@@ -202,6 +202,11 @@ export function createHandler({
|
|
|
202
202
|
|
|
203
203
|
if (!isDev) {
|
|
204
204
|
logger.info('Initializing Next.js app for production');
|
|
205
|
+
|
|
206
|
+
// https://github.com/lobehub/lobe-chat/pull/9851
|
|
207
|
+
// @ts-expect-error
|
|
208
|
+
// noinspection JSConstantReassignment
|
|
209
|
+
process.env.NODE_ENV = 'production';
|
|
205
210
|
const next = require(resolve.sync('next', { basedir: standaloneDir }));
|
|
206
211
|
|
|
207
212
|
// @see https://github.com/vercel/next.js/issues/64031#issuecomment-2078708340
|
|
@@ -209,10 +214,7 @@ export function createHandler({
|
|
|
209
214
|
.config as NextConfig;
|
|
210
215
|
process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(config);
|
|
211
216
|
|
|
212
|
-
app = next({
|
|
213
|
-
dev: false,
|
|
214
|
-
dir: standaloneDir,
|
|
215
|
-
}) as NextNodeServer;
|
|
217
|
+
app = next({ dir: standaloneDir }) as NextNodeServer;
|
|
216
218
|
|
|
217
219
|
handler = app.getRequestHandler();
|
|
218
220
|
preparePromise = app.prepare();
|