@lobehub/lobehub 2.0.0-next.212 → 2.0.0-next.214

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 (152) hide show
  1. package/.github/workflows/auto-i18n.yml +1 -1
  2. package/.github/workflows/bundle-analyzer.yml +1 -1
  3. package/.github/workflows/claude-auto-testing.yml +1 -1
  4. package/.github/workflows/claude-dedupe-issues.yml +1 -1
  5. package/.github/workflows/claude-issue-triage.yml +1 -1
  6. package/.github/workflows/claude-translate-comments.yml +1 -1
  7. package/.github/workflows/claude-translator.yml +1 -1
  8. package/.github/workflows/claude.yml +1 -1
  9. package/.github/workflows/desktop-build-electron.yml +2 -2
  10. package/.github/workflows/e2e.yml +1 -1
  11. package/.github/workflows/issue-auto-close-duplicates.yml +1 -1
  12. package/.github/workflows/lighthouse.yml +2 -2
  13. package/.github/workflows/lock-closed-issues.yml +1 -1
  14. package/.github/workflows/manual-build-desktop.yml +6 -6
  15. package/.github/workflows/pr-build-desktop.yml +5 -5
  16. package/.github/workflows/pr-build-docker.yml +2 -2
  17. package/.github/workflows/release-desktop-beta.yml +4 -4
  18. package/.github/workflows/release-docker.yml +2 -2
  19. package/.github/workflows/release.yml +1 -1
  20. package/.github/workflows/sync-database-schema.yml +1 -1
  21. package/.github/workflows/sync.yml +1 -1
  22. package/.github/workflows/test.yml +5 -5
  23. package/.github/workflows/verify-desktop-patch.yml +1 -1
  24. package/CHANGELOG.md +58 -0
  25. package/apps/desktop/package.json +3 -2
  26. package/apps/desktop/src/main/const/store.ts +1 -1
  27. package/apps/desktop/src/main/controllers/SystemCtr.ts +2 -3
  28. package/apps/desktop/src/main/core/App.ts +10 -3
  29. package/apps/desktop/src/main/types/store.ts +1 -1
  30. package/changelog/v1.json +14 -0
  31. package/locales/ar/models.json +35 -4
  32. package/locales/ar/providers.json +1 -0
  33. package/locales/bg-BG/models.json +24 -1
  34. package/locales/bg-BG/providers.json +1 -0
  35. package/locales/de-DE/models.json +30 -1
  36. package/locales/de-DE/providers.json +1 -0
  37. package/locales/en-US/models.json +1 -0
  38. package/locales/en-US/providers.json +1 -0
  39. package/locales/es-ES/models.json +32 -1
  40. package/locales/es-ES/providers.json +1 -0
  41. package/locales/fa-IR/models.json +48 -1
  42. package/locales/fa-IR/providers.json +1 -0
  43. package/locales/fr-FR/models.json +47 -1
  44. package/locales/fr-FR/providers.json +1 -0
  45. package/locales/it-IT/models.json +32 -1
  46. package/locales/it-IT/providers.json +1 -0
  47. package/locales/ja-JP/models.json +2 -1
  48. package/locales/ja-JP/providers.json +1 -0
  49. package/locales/ko-KR/models.json +24 -1
  50. package/locales/ko-KR/providers.json +1 -0
  51. package/locales/nl-NL/models.json +46 -1
  52. package/locales/nl-NL/providers.json +1 -0
  53. package/locales/pl-PL/models.json +41 -1
  54. package/locales/pl-PL/providers.json +1 -0
  55. package/locales/pt-BR/models.json +32 -1
  56. package/locales/pt-BR/providers.json +1 -0
  57. package/locales/ru-RU/models.json +54 -2
  58. package/locales/ru-RU/providers.json +1 -0
  59. package/locales/tr-TR/models.json +32 -1
  60. package/locales/tr-TR/providers.json +1 -0
  61. package/locales/vi-VN/models.json +37 -1
  62. package/locales/vi-VN/providers.json +1 -0
  63. package/locales/zh-CN/models.json +24 -3
  64. package/locales/zh-CN/providers.json +1 -0
  65. package/locales/zh-TW/models.json +11 -1
  66. package/locales/zh-TW/providers.json +1 -0
  67. package/package.json +4 -3
  68. package/packages/builtin-tool-knowledge-base/src/client/Render/SearchKnowledgeBase/Item/index.tsx +4 -2
  69. package/packages/builtin-tool-local-system/src/client/Intervention/EditLocalFile/index.tsx +3 -2
  70. package/packages/builtin-tool-local-system/src/client/Render/EditLocalFile/index.tsx +3 -2
  71. package/packages/const/src/theme.ts +0 -2
  72. package/packages/context-engine/src/engine/messages/types.ts +1 -1
  73. package/packages/desktop-bridge/src/routeVariants.ts +2 -9
  74. package/packages/electron-client-ipc/src/types/system.ts +1 -1
  75. package/packages/model-runtime/src/core/BaseAI.ts +1 -1
  76. package/packages/model-runtime/src/core/streams/qwen.test.ts +140 -0
  77. package/packages/model-runtime/src/core/streams/qwen.ts +17 -5
  78. package/packages/model-runtime/src/types/chat.ts +12 -12
  79. package/packages/model-runtime/src/types/error.ts +1 -1
  80. package/packages/model-runtime/src/types/image.ts +1 -1
  81. package/scripts/electronWorkflow/modifiers/nextConfig.mts +41 -13
  82. package/src/app/[variants]/(auth)/_layout/index.tsx +3 -2
  83. package/src/app/[variants]/(auth)/_layout/style.ts +8 -18
  84. package/src/app/[variants]/(auth)/layout.tsx +7 -3
  85. package/src/app/[variants]/(desktop)/desktop-onboarding/_layout/index.tsx +4 -2
  86. package/src/app/[variants]/(desktop)/desktop-onboarding/_layout/style.ts +3 -0
  87. package/src/app/[variants]/(main)/_layout/DesktopLayoutContainer.tsx +3 -2
  88. package/src/app/[variants]/(main)/chat/features/Conversation/Header/index.tsx +2 -1
  89. package/src/app/[variants]/(main)/chat/profile/features/ProfileEditor/PluginTag.tsx +3 -2
  90. package/src/app/[variants]/(main)/community/(list)/_layout/Footer.tsx +3 -2
  91. package/src/app/[variants]/(main)/group/features/Conversation/ChatItem/Thread.tsx +3 -2
  92. package/src/app/[variants]/(main)/group/profile/features/AgentBuilder/index.tsx +0 -1
  93. package/src/app/[variants]/(main)/group/profile/features/ProfileEditor/PluginTag.tsx +3 -2
  94. package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/AgentItem/Editing.tsx +2 -2
  95. package/src/app/[variants]/(main)/home/_layout/Footer/index.tsx +1 -1
  96. package/src/app/[variants]/(main)/home/_layout/index.tsx +3 -2
  97. package/src/app/[variants]/(main)/home/features/CommunityAgents/Item.tsx +3 -2
  98. package/src/app/[variants]/(main)/image/_layout/ConfigPanel/components/AspectRatioSelect/index.tsx +4 -2
  99. package/src/app/[variants]/(main)/image/_layout/ConfigPanel/components/ModelSelect/ImageModelItem.tsx +3 -2
  100. package/src/app/[variants]/(main)/image/_layout/ConfigPanel/components/Select/index.tsx +4 -2
  101. package/src/app/[variants]/(main)/image/features/PromptInput/index.tsx +3 -2
  102. package/src/app/[variants]/(main)/memory/features/TimeLineView/index.tsx +9 -4
  103. package/src/app/[variants]/(main)/page/_layout/Body/List/Item/Editing.tsx +2 -2
  104. package/src/app/[variants]/(main)/settings/common/features/Common/Common.tsx +11 -11
  105. package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +3 -2
  106. package/src/app/[variants]/(main)/settings/stats/features/overview/ShareButton/TotalCard.tsx +4 -2
  107. package/src/app/[variants]/(mobile)/me/(home)/features/Header.tsx +6 -8
  108. package/src/app/[variants]/layout.tsx +10 -15
  109. package/src/app/[variants]/onboarding/_layout/index.tsx +3 -2
  110. package/src/app/[variants]/onboarding/features/ModeSelectionStep.tsx +3 -2
  111. package/src/app/[variants]/router/index.tsx +12 -8
  112. package/src/components/Cell/Divider.tsx +4 -2
  113. package/src/components/DataStyleModal/index.tsx +4 -2
  114. package/src/components/FeatureList/index.tsx +4 -2
  115. package/src/components/FileParsingStatus/EmbeddingStatus.tsx +3 -2
  116. package/src/components/FileParsingStatus/index.tsx +3 -2
  117. package/src/components/Notification/index.tsx +4 -2
  118. package/src/components/client/ClientOnly.tsx +17 -0
  119. package/src/features/AlertBanner/CloudBanner.tsx +4 -3
  120. package/src/features/CommandMenu/ThemeMenu.tsx +1 -1
  121. package/src/features/CommandMenu/types.ts +5 -2
  122. package/src/features/CommandMenu/useCommandMenu.ts +3 -2
  123. package/src/features/Conversation/Markdown/plugins/LobeArtifact/Render/index.tsx +3 -2
  124. package/src/features/Conversation/Messages/components/FileChunks/ChunkItem.tsx +3 -2
  125. package/src/features/Conversation/Messages/components/FileChunks/index.tsx +4 -2
  126. package/src/features/Conversation/Messages/components/SearchGrounding.tsx +3 -2
  127. package/src/features/ElectronTitlebar/hooks/useWatchThemeUpdate.ts +21 -38
  128. package/src/features/GroupChatSettings/AgentCard.tsx +3 -2
  129. package/src/features/GroupChatSettings/HostMemberCard.tsx +3 -2
  130. package/src/features/PageEditor/DiffAllToolbar.tsx +4 -2
  131. package/src/features/User/UserPanel/ThemeButton.tsx +18 -29
  132. package/src/hooks/useIsDark.ts +11 -0
  133. package/src/layout/AuthProvider/Clerk/useAppearance.ts +4 -2
  134. package/src/layout/AuthProvider/MarketAuth/MarketAuthConfirmModal.tsx +3 -2
  135. package/src/layout/GlobalProvider/AppTheme.tsx +15 -19
  136. package/src/layout/GlobalProvider/NextThemeProvider.tsx +22 -0
  137. package/src/layout/GlobalProvider/StyleRegistry.tsx +18 -13
  138. package/src/layout/GlobalProvider/index.tsx +38 -36
  139. package/src/libs/next/proxy/define-config.ts +2 -11
  140. package/src/server/services/comfyui/config/constants.ts +7 -7
  141. package/src/server/services/comfyui/config/promptToolConst.ts +26 -26
  142. package/src/server/services/comfyui/utils/promptSplitter.ts +23 -23
  143. package/src/server/services/comfyui/utils/weightDType.ts +4 -5
  144. package/src/store/global/action.test.ts +0 -15
  145. package/src/store/global/actions/__tests__/general.test.ts +0 -37
  146. package/src/store/global/actions/general.ts +0 -21
  147. package/src/store/global/initialState.ts +0 -6
  148. package/src/store/global/selectors/systemStatus.test.ts +0 -20
  149. package/src/store/global/selectors/systemStatus.ts +0 -2
  150. package/src/styles/global.ts +0 -2
  151. package/src/utils/server/routeVariants.test.ts +17 -51
  152. package/src/utils/server/routeVariants.ts +0 -1
@@ -21,7 +21,7 @@ jobs:
21
21
  git config --global user.name "lobehubbot"
22
22
  git config --global user.email "i@lobehub.com"
23
23
 
24
- - uses: actions/checkout@v5
24
+ - uses: actions/checkout@v6
25
25
  with:
26
26
  ref: ${{ github.event.pull_request.head.ref }}
27
27
 
@@ -18,7 +18,7 @@ jobs:
18
18
 
19
19
  steps:
20
20
  - name: Checkout repository
21
- uses: actions/checkout@v5
21
+ uses: actions/checkout@v6
22
22
 
23
23
  - name: Setup Node.js
24
24
  uses: actions/setup-node@v6
@@ -27,7 +27,7 @@ jobs:
27
27
 
28
28
  steps:
29
29
  - name: Checkout repository
30
- uses: actions/checkout@v5
30
+ uses: actions/checkout@v6
31
31
  with:
32
32
  fetch-depth: 1
33
33
 
@@ -20,7 +20,7 @@ jobs:
20
20
 
21
21
  steps:
22
22
  - name: Checkout repository
23
- uses: actions/checkout@v5
23
+ uses: actions/checkout@v6
24
24
  with:
25
25
  fetch-depth: 1
26
26
 
@@ -16,7 +16,7 @@ jobs:
16
16
 
17
17
  steps:
18
18
  - name: Checkout repository
19
- uses: actions/checkout@v5
19
+ uses: actions/checkout@v6
20
20
 
21
21
  - name: Copy triage prompts
22
22
  run: |
@@ -27,7 +27,7 @@ jobs:
27
27
 
28
28
  steps:
29
29
  - name: Checkout repository
30
- uses: actions/checkout@v5
30
+ uses: actions/checkout@v6
31
31
  with:
32
32
  fetch-depth: 1
33
33
 
@@ -31,7 +31,7 @@ jobs:
31
31
 
32
32
  steps:
33
33
  - name: Checkout repository
34
- uses: actions/checkout@v5
34
+ uses: actions/checkout@v6
35
35
  with:
36
36
  fetch-depth: 1
37
37
 
@@ -26,7 +26,7 @@ jobs:
26
26
  actions: read # Required for Claude to read CI results on PRs
27
27
  steps:
28
28
  - name: Checkout repository
29
- uses: actions/checkout@v5
29
+ uses: actions/checkout@v6
30
30
  with:
31
31
  fetch-depth: 1
32
32
 
@@ -38,7 +38,7 @@ jobs:
38
38
  NEXT_PUBLIC_DESKTOP_UMAMI_BASE_URL: ${{ secrets.UMAMI_NIGHTLY_DESKTOP_BASE_URL || 'https://analytics.example.com' }}
39
39
  steps:
40
40
  - name: Checkout repository
41
- uses: actions/checkout@v5
41
+ uses: actions/checkout@v6
42
42
  with:
43
43
  fetch-depth: 0
44
44
 
@@ -60,7 +60,7 @@ jobs:
60
60
  run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
61
61
 
62
62
  - name: Cache pnpm store
63
- uses: actions/cache@v4
63
+ uses: actions/cache@v5
64
64
  with:
65
65
  path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
66
66
  key: ${{ runner.os }}-pnpm-store-${{ env.NODE_VERSION }}-${{ hashFiles('pnpm-lock.yaml') }}
@@ -41,7 +41,7 @@ jobs:
41
41
  timeout-minutes: 30
42
42
  steps:
43
43
  - name: Checkout
44
- uses: actions/checkout@v5
44
+ uses: actions/checkout@v6
45
45
 
46
46
  - name: Setup Bun
47
47
  uses: oven-sh/setup-bun@v2
@@ -15,7 +15,7 @@ jobs:
15
15
 
16
16
  steps:
17
17
  - name: Checkout repository
18
- uses: actions/checkout@v5
18
+ uses: actions/checkout@v6
19
19
 
20
20
  - name: Setup Bun
21
21
  uses: oven-sh/setup-bun@v2
@@ -42,12 +42,12 @@ jobs:
42
42
  echo "BRANCH=$BRANCH" >> $GITHUB_ENV
43
43
  env:
44
44
  REPO_BRANCH: ${{ matrix.REPO_BRANCH || env.REPO_BRANCH }}
45
- - uses: actions/checkout@v5
45
+ - uses: actions/checkout@v6
46
46
  with:
47
47
  repository: ${{ env.REPOSITORY }}
48
48
  token: ${{ secrets[matrix.TOKEN_NAME] || secrets[env.TOKEN_NAME] }}
49
49
  ref: ${{ env.BRANCH }}
50
- - uses: actions/checkout@v5
50
+ - uses: actions/checkout@v6
51
51
  with:
52
52
  repository: 'myactionway/lighthouse-badges'
53
53
  path: temp_lighthouse_badges_nested
@@ -16,7 +16,7 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
18
  - name: Checkout repository
19
- uses: actions/checkout@v5
19
+ uses: actions/checkout@v6
20
20
 
21
21
  - name: Lock closed issues after 7 days of inactivity
22
22
  uses: actions/github-script@v8
@@ -49,7 +49,7 @@ jobs:
49
49
  runs-on: ubuntu-latest
50
50
  steps:
51
51
  - name: Checkout base
52
- uses: actions/checkout@v5
52
+ uses: actions/checkout@v6
53
53
  with:
54
54
  fetch-depth: 0
55
55
 
@@ -72,7 +72,7 @@ jobs:
72
72
  outputs:
73
73
  version: ${{ steps.set_version.outputs.version }}
74
74
  steps:
75
- - uses: actions/checkout@v5
75
+ - uses: actions/checkout@v6
76
76
  with:
77
77
  fetch-depth: 0
78
78
 
@@ -114,7 +114,7 @@ jobs:
114
114
  matrix:
115
115
  os: [macos-latest, macos-15-intel]
116
116
  steps:
117
- - uses: actions/checkout@v5
117
+ - uses: actions/checkout@v6
118
118
  with:
119
119
  fetch-depth: 0
120
120
 
@@ -192,7 +192,7 @@ jobs:
192
192
  if: inputs.build_windows
193
193
  runs-on: windows-2025
194
194
  steps:
195
- - uses: actions/checkout@v5
195
+ - uses: actions/checkout@v6
196
196
  with:
197
197
  fetch-depth: 0
198
198
 
@@ -245,7 +245,7 @@ jobs:
245
245
  if: inputs.build_linux
246
246
  runs-on: ubuntu-latest
247
247
  steps:
248
- - uses: actions/checkout@v5
248
+ - uses: actions/checkout@v6
249
249
  with:
250
250
  fetch-depth: 0
251
251
 
@@ -299,7 +299,7 @@ jobs:
299
299
  if: inputs.build_macos
300
300
  steps:
301
301
  - name: Checkout repository
302
- uses: actions/checkout@v5
302
+ uses: actions/checkout@v6
303
303
 
304
304
  - name: Setup Node & Bun
305
305
  uses: ./.github/actions/setup-node-bun
@@ -25,7 +25,7 @@ jobs:
25
25
  runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
26
26
  steps:
27
27
  - name: Checkout base
28
- uses: actions/checkout@v5
28
+ uses: actions/checkout@v6
29
29
  with:
30
30
  fetch-depth: 0
31
31
 
@@ -55,7 +55,7 @@ jobs:
55
55
  # 输出版本信息,供后续 job 使用
56
56
  version: ${{ steps.set_version.outputs.version }}
57
57
  steps:
58
- - uses: actions/checkout@v5
58
+ - uses: actions/checkout@v6
59
59
  with:
60
60
  fetch-depth: 0
61
61
 
@@ -95,7 +95,7 @@ jobs:
95
95
  matrix:
96
96
  os: [macos-latest, macos-15-intel, windows-2025, ubuntu-latest]
97
97
  steps:
98
- - uses: actions/checkout@v5
98
+ - uses: actions/checkout@v6
99
99
  with:
100
100
  fetch-depth: 0
101
101
 
@@ -218,7 +218,7 @@ jobs:
218
218
  contents: write
219
219
  steps:
220
220
  - name: Checkout repository
221
- uses: actions/checkout@v5
221
+ uses: actions/checkout@v6
222
222
 
223
223
  - name: Setup Node & Bun
224
224
  uses: ./.github/actions/setup-node-bun
@@ -274,7 +274,7 @@ jobs:
274
274
  outputs:
275
275
  artifact_path: ${{ steps.set_path.outputs.path }}
276
276
  steps:
277
- - uses: actions/checkout@v5
277
+ - uses: actions/checkout@v6
278
278
  with:
279
279
  fetch-depth: 0
280
280
 
@@ -38,7 +38,7 @@ jobs:
38
38
  echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
39
39
 
40
40
  - name: Checkout PR branch
41
- uses: actions/checkout@v5
41
+ uses: actions/checkout@v6
42
42
  with:
43
43
  fetch-depth: 0
44
44
 
@@ -106,7 +106,7 @@ jobs:
106
106
  if: github.event.pull_request.head.repo.full_name == github.repository
107
107
  steps:
108
108
  - name: Checkout PR branch
109
- uses: actions/checkout@v5
109
+ uses: actions/checkout@v6
110
110
  with:
111
111
  fetch-depth: 0
112
112
 
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest # 只在 ubuntu 上运行一次检查
20
20
  steps:
21
21
  - name: Checkout base
22
- uses: actions/checkout@v5
22
+ uses: actions/checkout@v6
23
23
  with:
24
24
  fetch-depth: 0
25
25
 
@@ -48,7 +48,7 @@ jobs:
48
48
  version: ${{ steps.set_version.outputs.version }}
49
49
  is_pr_build: ${{ steps.set_version.outputs.is_pr_build }}
50
50
  steps:
51
- - uses: actions/checkout@v5
51
+ - uses: actions/checkout@v6
52
52
  with:
53
53
  fetch-depth: 0
54
54
 
@@ -84,7 +84,7 @@ jobs:
84
84
  matrix:
85
85
  os: [macos-latest, macos-15-intel, windows-2025, ubuntu-latest]
86
86
  steps:
87
- - uses: actions/checkout@v5
87
+ - uses: actions/checkout@v6
88
88
  with:
89
89
  fetch-depth: 0
90
90
 
@@ -205,7 +205,7 @@ jobs:
205
205
  contents: write
206
206
  steps:
207
207
  - name: Checkout repository
208
- uses: actions/checkout@v5
208
+ uses: actions/checkout@v6
209
209
 
210
210
  - name: Setup Node.js
211
211
  uses: actions/setup-node@v6
@@ -33,7 +33,7 @@ jobs:
33
33
  echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
34
34
 
35
35
  - name: Checkout base
36
- uses: actions/checkout@v5
36
+ uses: actions/checkout@v6
37
37
  with:
38
38
  fetch-depth: 0
39
39
 
@@ -93,7 +93,7 @@ jobs:
93
93
  runs-on: ubuntu-latest
94
94
  steps:
95
95
  - name: Checkout base
96
- uses: actions/checkout@v5
96
+ uses: actions/checkout@v6
97
97
  with:
98
98
  fetch-depth: 0
99
99
 
@@ -28,7 +28,7 @@ jobs:
28
28
  - 5432:5432
29
29
 
30
30
  steps:
31
- - uses: actions/checkout@v5
31
+ - uses: actions/checkout@v6
32
32
  with:
33
33
  token: ${{ secrets.GH_TOKEN }}
34
34
 
@@ -13,7 +13,7 @@ jobs:
13
13
  build:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
- - uses: actions/checkout@v5
16
+ - uses: actions/checkout@v6
17
17
 
18
18
  - name: Install bun
19
19
  uses: oven-sh/setup-bun@v2
@@ -17,7 +17,7 @@ jobs:
17
17
  if: ${{ github.event.repository.fork }}
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v5
20
+ - uses: actions/checkout@v6
21
21
 
22
22
  - name: Clean issue notice
23
23
  uses: actions-cool/issues-helper@v3
@@ -26,7 +26,7 @@ jobs:
26
26
  name: Test package ${{ matrix.package }}
27
27
 
28
28
  steps:
29
- - uses: actions/checkout@v5
29
+ - uses: actions/checkout@v6
30
30
 
31
31
  - name: Setup Node.js
32
32
  uses: actions/setup-node@v6
@@ -61,7 +61,7 @@ jobs:
61
61
  name: Test package ${{ matrix.package }}
62
62
 
63
63
  steps:
64
- - uses: actions/checkout@v5
64
+ - uses: actions/checkout@v6
65
65
 
66
66
  - name: Setup Node.js
67
67
  uses: actions/setup-node@v6
@@ -94,7 +94,7 @@ jobs:
94
94
  runs-on: ubuntu-latest
95
95
 
96
96
  steps:
97
- - uses: actions/checkout@v5
97
+ - uses: actions/checkout@v6
98
98
 
99
99
  - name: Setup Node.js
100
100
  uses: actions/setup-node@v6
@@ -126,7 +126,7 @@ jobs:
126
126
  runs-on: ubuntu-latest
127
127
 
128
128
  steps:
129
- - uses: actions/checkout@v5
129
+ - uses: actions/checkout@v6
130
130
 
131
131
  - name: Setup Node.js
132
132
  uses: actions/setup-node@v6
@@ -178,7 +178,7 @@ jobs:
178
178
  - 5432:5432
179
179
 
180
180
  steps:
181
- - uses: actions/checkout@v5
181
+ - uses: actions/checkout@v6
182
182
 
183
183
  - name: Setup Node.js
184
184
  uses: actions/setup-node@v6
@@ -38,7 +38,7 @@ jobs:
38
38
  runs-on: ubuntu-latest
39
39
  steps:
40
40
  - name: Checkout
41
- uses: actions/checkout@v5
41
+ uses: actions/checkout@v6
42
42
  with:
43
43
  fetch-depth: 0
44
44
 
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.214](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.213...v2.0.0-next.214)
6
+
7
+ <sup>Released on **2026-01-05**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **electron**: Correct next config codemod pattern matching.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **electron**: Correct next config codemod pattern matching, closes [#11228](https://github.com/lobehub/lobe-chat/issues/11228) ([06cb019](https://github.com/lobehub/lobe-chat/commit/06cb019))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ## [Version 2.0.0-next.213](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.212...v2.0.0-next.213)
31
+
32
+ <sup>Released on **2026-01-05**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **model-runtime**: Handle incremental tool call chunks in Qwen stream.
37
+
38
+ #### 💄 Styles
39
+
40
+ - **misc**: Update i18n.
41
+
42
+ <br/>
43
+
44
+ <details>
45
+ <summary><kbd>Improvements and Fixes</kbd></summary>
46
+
47
+ #### What's fixed
48
+
49
+ - **model-runtime**: Handle incremental tool call chunks in Qwen stream, closes [#11219](https://github.com/lobehub/lobe-chat/issues/11219) ([03b9407](https://github.com/lobehub/lobe-chat/commit/03b9407))
50
+
51
+ #### Styles
52
+
53
+ - **misc**: Update i18n, closes [#11213](https://github.com/lobehub/lobe-chat/issues/11213) ([00e0980](https://github.com/lobehub/lobe-chat/commit/00e0980))
54
+
55
+ </details>
56
+
57
+ <div align="right">
58
+
59
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
60
+
61
+ </div>
62
+
5
63
  ## [Version 2.0.0-next.212](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.211...v2.0.0-next.212)
6
64
 
7
65
  <sup>Released on **2026-01-05**</sup>
@@ -18,6 +18,7 @@
18
18
  "build:mac:local": "npm run build && UPDATE_CHANNEL=nightly electron-builder --mac --config electron-builder.js --publish never",
19
19
  "build:win": "npm run build && electron-builder --win --config electron-builder.js --publish never",
20
20
  "dev": "electron-vite dev",
21
+ "dev:static": "cross-env DESKTOP_RENDERER_STATIC=1 npm run electron:dev",
21
22
  "electron:dev": "electron-vite dev",
22
23
  "electron:run-unpack": "electron .",
23
24
  "format": "prettier --write ",
@@ -57,11 +58,11 @@
57
58
  "@lobechat/file-loaders": "workspace:*",
58
59
  "@lobehub/i18n-cli": "^1.25.1",
59
60
  "@modelcontextprotocol/sdk": "^1.24.3",
61
+ "@t3-oss/env-core": "^0.13.8",
60
62
  "@types/async-retry": "^1.4.9",
61
63
  "@types/resolve": "^1.20.6",
62
64
  "@types/semver": "^7.7.1",
63
65
  "@types/set-cookie-parser": "^2.4.10",
64
- "@t3-oss/env-core": "^0.13.8",
65
66
  "@typescript/native-preview": "7.0.0-dev.20251210.1",
66
67
  "async-retry": "^1.3.3",
67
68
  "consola": "^3.4.2",
@@ -104,4 +105,4 @@
104
105
  "electron-builder"
105
106
  ]
106
107
  }
107
- }
108
+ }
@@ -31,5 +31,5 @@ export const STORE_DEFAULTS: ElectronMainStore = {
31
31
  networkProxy: defaultProxySettings,
32
32
  shortcuts: DEFAULT_SHORTCUTS_CONFIG,
33
33
  storagePath: appStorageDir,
34
- themeMode: 'auto',
34
+ themeMode: 'system',
35
35
  };
@@ -258,9 +258,8 @@ export default class SystemController extends ControllerModule {
258
258
  return nativeTheme.themeSource;
259
259
  }
260
260
 
261
- @IpcMethod()
262
- async setSystemThemeMode(themeMode: ThemeMode) {
263
- nativeTheme.themeSource = themeMode === 'auto' ? 'system' : themeMode;
261
+ private async setSystemThemeMode(themeMode: ThemeMode) {
262
+ nativeTheme.themeSource = themeMode;
264
263
  }
265
264
 
266
265
  /**
@@ -142,10 +142,17 @@ export class App {
142
142
  * This allows nativeTheme.shouldUseDarkColors to be used consistently everywhere
143
143
  */
144
144
  private initializeThemeMode() {
145
- const themeMode = this.storeManager.get('themeMode');
145
+ let themeMode = this.storeManager.get('themeMode');
146
+
147
+ // Migrate legacy 'auto' value to 'system' (nativeTheme.themeSource doesn't accept 'auto')
148
+ if (Object.is(themeMode, 'auto')) {
149
+ themeMode = 'system';
150
+ this.storeManager.set('themeMode', themeMode);
151
+ logger.info(`Migrated legacy theme mode 'auto' to 'system'`);
152
+ }
146
153
 
147
154
  if (themeMode) {
148
- nativeTheme.themeSource = themeMode === 'auto' ? 'system' : themeMode;
155
+ nativeTheme.themeSource = themeMode;
149
156
  logger.debug(
150
157
  `Theme mode initialized to: ${themeMode} (themeSource: ${nativeTheme.themeSource})`,
151
158
  );
@@ -401,4 +408,4 @@ export class App {
401
408
  // 执行清理操作
402
409
  this.staticFileServerManager.destroy();
403
410
  };
404
- }
411
+ }
@@ -11,7 +11,7 @@ export interface ElectronMainStore {
11
11
  networkProxy: NetworkProxySettings;
12
12
  shortcuts: Record<string, string>;
13
13
  storagePath: string;
14
- themeMode: 'dark' | 'light' | 'auto';
14
+ themeMode: 'dark' | 'light' | 'system';
15
15
  }
16
16
 
17
17
  export type StoreKey = keyof ElectronMainStore;
package/changelog/v1.json CHANGED
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2026-01-05",
5
+ "version": "2.0.0-next.214"
6
+ },
7
+ {
8
+ "children": {
9
+ "improvements": [
10
+ "Update i18n."
11
+ ]
12
+ },
13
+ "date": "2026-01-05",
14
+ "version": "2.0.0-next.213"
15
+ },
2
16
  {
3
17
  "children": {},
4
18
  "date": "2026-01-05",