@lobehub/lobehub 2.0.0-next.307 → 2.0.0-next.309

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 (221) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/changelog/v1.json +21 -0
  3. package/locales/ar/agentGroup.json +5 -0
  4. package/locales/ar/chat.json +26 -0
  5. package/locales/ar/models.json +43 -5
  6. package/locales/ar/plugin.json +4 -5
  7. package/locales/ar/setting.json +11 -0
  8. package/locales/ar/subscription.json +2 -0
  9. package/locales/ar/tool.json +2 -0
  10. package/locales/bg-BG/agentGroup.json +5 -0
  11. package/locales/bg-BG/chat.json +26 -0
  12. package/locales/bg-BG/models.json +49 -3
  13. package/locales/bg-BG/plugin.json +4 -5
  14. package/locales/bg-BG/setting.json +11 -0
  15. package/locales/bg-BG/subscription.json +2 -0
  16. package/locales/bg-BG/tool.json +2 -0
  17. package/locales/de-DE/agentGroup.json +5 -0
  18. package/locales/de-DE/chat.json +26 -0
  19. package/locales/de-DE/models.json +48 -5
  20. package/locales/de-DE/plugin.json +4 -5
  21. package/locales/de-DE/setting.json +11 -0
  22. package/locales/de-DE/subscription.json +2 -0
  23. package/locales/de-DE/tool.json +2 -0
  24. package/locales/en-US/models.json +8 -6
  25. package/locales/en-US/plugin.json +3 -4
  26. package/locales/en-US/setting.json +10 -11
  27. package/locales/en-US/tool.json +2 -0
  28. package/locales/es-ES/agentGroup.json +5 -0
  29. package/locales/es-ES/chat.json +26 -0
  30. package/locales/es-ES/models.json +43 -5
  31. package/locales/es-ES/plugin.json +4 -5
  32. package/locales/es-ES/setting.json +11 -0
  33. package/locales/es-ES/subscription.json +2 -0
  34. package/locales/es-ES/tool.json +2 -0
  35. package/locales/fa-IR/agentGroup.json +5 -0
  36. package/locales/fa-IR/chat.json +26 -0
  37. package/locales/fa-IR/models.json +42 -5
  38. package/locales/fa-IR/plugin.json +4 -5
  39. package/locales/fa-IR/setting.json +11 -0
  40. package/locales/fa-IR/subscription.json +2 -0
  41. package/locales/fa-IR/tool.json +2 -0
  42. package/locales/fr-FR/agentGroup.json +5 -0
  43. package/locales/fr-FR/chat.json +26 -0
  44. package/locales/fr-FR/models.json +5 -5
  45. package/locales/fr-FR/plugin.json +4 -5
  46. package/locales/fr-FR/setting.json +11 -0
  47. package/locales/fr-FR/subscription.json +2 -0
  48. package/locales/fr-FR/tool.json +2 -0
  49. package/locales/it-IT/agentGroup.json +5 -0
  50. package/locales/it-IT/chat.json +26 -0
  51. package/locales/it-IT/models.json +1 -3
  52. package/locales/it-IT/plugin.json +4 -5
  53. package/locales/it-IT/setting.json +11 -0
  54. package/locales/it-IT/subscription.json +2 -0
  55. package/locales/it-IT/tool.json +2 -0
  56. package/locales/ja-JP/agentGroup.json +5 -0
  57. package/locales/ja-JP/chat.json +26 -0
  58. package/locales/ja-JP/models.json +1 -5
  59. package/locales/ja-JP/plugin.json +4 -5
  60. package/locales/ja-JP/setting.json +11 -0
  61. package/locales/ja-JP/subscription.json +2 -0
  62. package/locales/ja-JP/tool.json +2 -0
  63. package/locales/ko-KR/agentGroup.json +5 -0
  64. package/locales/ko-KR/chat.json +26 -0
  65. package/locales/ko-KR/models.json +1 -3
  66. package/locales/ko-KR/plugin.json +4 -5
  67. package/locales/ko-KR/setting.json +11 -0
  68. package/locales/ko-KR/subscription.json +2 -0
  69. package/locales/ko-KR/tool.json +2 -0
  70. package/locales/nl-NL/agentGroup.json +5 -0
  71. package/locales/nl-NL/chat.json +26 -0
  72. package/locales/nl-NL/models.json +35 -3
  73. package/locales/nl-NL/plugin.json +4 -5
  74. package/locales/nl-NL/setting.json +11 -0
  75. package/locales/nl-NL/subscription.json +2 -0
  76. package/locales/nl-NL/tool.json +2 -0
  77. package/locales/pl-PL/agentGroup.json +5 -0
  78. package/locales/pl-PL/chat.json +26 -0
  79. package/locales/pl-PL/models.json +1 -3
  80. package/locales/pl-PL/plugin.json +4 -5
  81. package/locales/pl-PL/setting.json +11 -0
  82. package/locales/pl-PL/subscription.json +2 -0
  83. package/locales/pl-PL/tool.json +2 -0
  84. package/locales/pt-BR/agentGroup.json +5 -0
  85. package/locales/pt-BR/chat.json +26 -0
  86. package/locales/pt-BR/models.json +50 -5
  87. package/locales/pt-BR/plugin.json +4 -5
  88. package/locales/pt-BR/setting.json +11 -0
  89. package/locales/pt-BR/subscription.json +2 -0
  90. package/locales/pt-BR/tool.json +2 -0
  91. package/locales/ru-RU/agentGroup.json +5 -0
  92. package/locales/ru-RU/chat.json +26 -0
  93. package/locales/ru-RU/models.json +22 -3
  94. package/locales/ru-RU/plugin.json +4 -5
  95. package/locales/ru-RU/setting.json +11 -0
  96. package/locales/ru-RU/subscription.json +2 -0
  97. package/locales/ru-RU/tool.json +2 -0
  98. package/locales/tr-TR/agentGroup.json +5 -0
  99. package/locales/tr-TR/chat.json +26 -0
  100. package/locales/tr-TR/models.json +36 -3
  101. package/locales/tr-TR/plugin.json +4 -5
  102. package/locales/tr-TR/setting.json +11 -0
  103. package/locales/tr-TR/subscription.json +2 -0
  104. package/locales/tr-TR/tool.json +2 -0
  105. package/locales/vi-VN/agentGroup.json +5 -0
  106. package/locales/vi-VN/chat.json +26 -0
  107. package/locales/vi-VN/models.json +1 -1
  108. package/locales/vi-VN/plugin.json +4 -5
  109. package/locales/vi-VN/setting.json +11 -0
  110. package/locales/vi-VN/subscription.json +2 -0
  111. package/locales/vi-VN/tool.json +2 -0
  112. package/locales/zh-CN/models.json +52 -5
  113. package/locales/zh-CN/plugin.json +6 -7
  114. package/locales/zh-CN/setting.json +10 -11
  115. package/locales/zh-CN/tool.json +2 -2
  116. package/locales/zh-TW/agentGroup.json +5 -0
  117. package/locales/zh-TW/chat.json +26 -0
  118. package/locales/zh-TW/models.json +54 -5
  119. package/locales/zh-TW/plugin.json +4 -5
  120. package/locales/zh-TW/setting.json +11 -0
  121. package/locales/zh-TW/subscription.json +2 -0
  122. package/locales/zh-TW/tool.json +2 -0
  123. package/package.json +1 -1
  124. package/packages/agent-runtime/src/types/state.ts +2 -0
  125. package/packages/builtin-tool-group-agent-builder/src/client/Inspector/GetAgentInfo/index.tsx +68 -0
  126. package/packages/builtin-tool-group-agent-builder/src/client/Inspector/index.ts +3 -0
  127. package/packages/builtin-tool-group-management/src/client/Inspector/ExecuteAgentTask/index.tsx +52 -8
  128. package/packages/builtin-tool-group-management/src/client/Render/ExecuteTask/index.tsx +2 -21
  129. package/packages/builtin-tool-group-management/src/executor.test.ts +6 -4
  130. package/packages/builtin-tool-group-management/src/manifest.ts +5 -1
  131. package/packages/builtin-tool-group-management/src/types.ts +2 -0
  132. package/packages/builtin-tool-local-system/src/client/Render/WriteFile/index.tsx +48 -5
  133. package/packages/builtin-tool-local-system/src/client/Streaming/WriteFile/index.tsx +39 -0
  134. package/packages/builtin-tool-local-system/src/client/Streaming/index.ts +2 -0
  135. package/packages/builtin-tool-memory/src/manifest.ts +581 -19
  136. package/packages/model-bank/src/aiModels/qiniu.ts +24 -0
  137. package/packages/types/src/topic/thread.ts +2 -2
  138. package/packages/types/src/userMemory/layers.ts +19 -8
  139. package/packages/types/src/userMemory/shared.ts +7 -1
  140. package/src/app/[variants]/(auth)/_layout/index.tsx +0 -2
  141. package/src/app/[variants]/(auth)/layout.tsx +0 -2
  142. package/src/app/[variants]/(auth)/login/[[...login]]/page.tsx +1 -3
  143. package/src/app/[variants]/(auth)/signup/[[...signup]]/page.tsx +1 -3
  144. package/src/app/[variants]/(desktop)/desktop-onboarding/_layout/index.tsx +0 -2
  145. package/src/app/[variants]/(main)/_layout/index.tsx +0 -2
  146. package/src/app/[variants]/(main)/agent/_layout/index.tsx +0 -2
  147. package/src/app/[variants]/(main)/agent/features/Portal/index.tsx +0 -2
  148. package/src/app/[variants]/(main)/community/(list)/_layout/index.tsx +0 -2
  149. package/src/app/[variants]/(main)/community/(list)/assistant/_layout/index.tsx +0 -2
  150. package/src/app/[variants]/(main)/community/(list)/mcp/_layout/index.tsx +0 -2
  151. package/src/app/[variants]/(main)/community/(list)/model/_layout/index.tsx +0 -2
  152. package/src/app/[variants]/(main)/community/_layout/index.tsx +0 -2
  153. package/src/app/[variants]/(main)/group/_layout/index.tsx +0 -2
  154. package/src/app/[variants]/(main)/group/features/Conversation/Header/index.tsx +4 -2
  155. package/src/app/[variants]/(main)/group/features/Portal/index.tsx +0 -2
  156. package/src/app/[variants]/(main)/home/_layout/index.tsx +0 -2
  157. package/src/app/[variants]/(main)/home/index.tsx +0 -2
  158. package/src/app/[variants]/(main)/image/_layout/Topics/TopicUrlSync.tsx +0 -2
  159. package/src/app/[variants]/(main)/image/_layout/index.tsx +0 -2
  160. package/src/app/[variants]/(main)/memory/_layout/index.tsx +0 -2
  161. package/src/app/[variants]/(main)/page/_layout/index.tsx +0 -2
  162. package/src/app/[variants]/(main)/resource/(home)/_layout/index.tsx +0 -2
  163. package/src/app/[variants]/(main)/resource/_layout/index.tsx +0 -2
  164. package/src/app/[variants]/(main)/resource/library/_layout/index.tsx +0 -2
  165. package/src/app/[variants]/(main)/resource/library/features/Container.tsx +0 -2
  166. package/src/app/[variants]/(main)/settings/_layout/index.tsx +0 -2
  167. package/src/app/[variants]/(main)/settings/about/index.tsx +0 -2
  168. package/src/app/[variants]/(main)/settings/agent/index.tsx +0 -2
  169. package/src/app/[variants]/(main)/settings/apikey/index.tsx +0 -2
  170. package/src/app/[variants]/(main)/settings/chat-appearance/index.tsx +0 -2
  171. package/src/app/[variants]/(main)/settings/common/index.tsx +0 -2
  172. package/src/app/[variants]/(main)/settings/hotkey/index.tsx +0 -2
  173. package/src/app/[variants]/(main)/settings/image/index.tsx +0 -2
  174. package/src/app/[variants]/(main)/settings/memory/index.tsx +0 -2
  175. package/src/app/[variants]/(main)/settings/provider/(list)/index.tsx +0 -2
  176. package/src/app/[variants]/(main)/settings/proxy/index.tsx +0 -2
  177. package/src/app/[variants]/(main)/settings/security/index.tsx +1 -3
  178. package/src/app/[variants]/(main)/settings/storage/index.tsx +0 -2
  179. package/src/app/[variants]/(main)/settings/tts/index.tsx +0 -2
  180. package/src/app/[variants]/(mobile)/(home)/_layout/index.tsx +0 -2
  181. package/src/app/[variants]/(mobile)/_layout/index.tsx +1 -3
  182. package/src/app/[variants]/(mobile)/chat/_layout/index.tsx +0 -2
  183. package/src/app/[variants]/(mobile)/chat/settings/_layout/index.tsx +0 -2
  184. package/src/app/[variants]/(mobile)/community/(detail)/_layout/index.tsx +0 -2
  185. package/src/app/[variants]/(mobile)/community/(list)/_layout/index.tsx +0 -2
  186. package/src/app/[variants]/(mobile)/community/_layout/index.tsx +0 -2
  187. package/src/app/[variants]/(mobile)/router/MobileClientRouter.tsx +0 -2
  188. package/src/app/[variants]/(mobile)/settings/index.tsx +0 -2
  189. package/src/app/[variants]/onboarding/_layout/index.tsx +0 -2
  190. package/src/app/[variants]/router/DesktopClientRouter.tsx +0 -2
  191. package/src/components/ModelSelect/index.tsx +6 -56
  192. package/src/components/server/MobileNavLayout.tsx +0 -2
  193. package/src/components/server/ServerLayout.tsx +0 -2
  194. package/src/features/ModelSwitchPanel/components/Footer.tsx +0 -2
  195. package/src/features/ModelSwitchPanel/components/List/MultipleProvidersModelItem.tsx +0 -1
  196. package/src/features/ModelSwitchPanel/components/List/SingleProviderModelItem.tsx +0 -1
  197. package/src/features/ModelSwitchPanel/components/List/VirtualItemRenderer.tsx +0 -1
  198. package/src/features/ModelSwitchPanel/components/List/index.tsx +15 -13
  199. package/src/features/ModelSwitchPanel/components/PanelContent.tsx +0 -2
  200. package/src/features/ModelSwitchPanel/index.tsx +21 -23
  201. package/src/features/ResourceManager/components/Explorer/MasonryView/index.tsx +0 -2
  202. package/src/features/User/UserAvatar.tsx +0 -2
  203. package/src/locales/default/plugin.ts +3 -1
  204. package/src/server/modules/AgentRuntime/RuntimeExecutors.ts +11 -3
  205. package/src/server/modules/Mecha/AgentToolsEngine/index.ts +14 -6
  206. package/src/server/modules/Mecha/AgentToolsEngine/types.ts +4 -3
  207. package/src/server/routers/lambda/aiAgent.ts +10 -0
  208. package/src/server/services/agent/index.test.ts +155 -0
  209. package/src/server/services/agent/index.ts +25 -0
  210. package/src/server/services/agentRuntime/AgentRuntimeService.ts +2 -0
  211. package/src/server/services/agentRuntime/types.ts +1 -0
  212. package/src/server/services/aiAgent/__tests__/execAgent.threadId.test.ts +29 -9
  213. package/src/server/services/aiAgent/index.ts +175 -6
  214. package/src/server/services/lobehubSkill/index.ts +109 -0
  215. package/src/server/services/toolExecution/builtin.ts +28 -2
  216. package/src/server/services/toolExecution/types.ts +3 -0
  217. package/src/store/chat/agents/GroupOrchestration/__tests__/call-supervisor.test.ts +305 -0
  218. package/src/store/chat/agents/GroupOrchestration/createGroupOrchestrationExecutors.ts +2 -1
  219. package/src/store/chat/agents/createAgentExecutors.ts +4 -2
  220. package/src/store/chat/slices/plugin/actions/exector.ts +92 -0
  221. package/src/store/chat/slices/plugin/actions/pluginTypes.ts +82 -177
@@ -78,6 +78,30 @@ const qiniuChatModels: AIChatModelCard[] = [
78
78
  },
79
79
  type: 'chat',
80
80
  },
81
+ {
82
+ abilities: {
83
+ reasoning: true,
84
+ },
85
+ contextWindowTokens: 163_840,
86
+ description:
87
+ 'DeepSeek Math V2 is a model that has made significant breakthroughs in mathematical reasoning capabilities. Its core innovation lies in the "self-verification" training mechanism, and it has achieved gold medal levels in several top mathematics competitions.',
88
+ displayName: 'DeepSeek Math V2',
89
+ enabled: true,
90
+ id: 'deepseek/deepseek-math-v2',
91
+ maxOutput: 131_072,
92
+ pricing: {
93
+ currency: 'CNY',
94
+ units: [
95
+ { name: 'textInput', rate: 4.0, strategy: 'fixed', unit: 'millionTokens' },
96
+ { name: 'textOutput', rate: 16.0, strategy: 'fixed', unit: 'millionTokens' },
97
+ ],
98
+ },
99
+ releasedAt: '2025-11-27',
100
+ settings: {
101
+ searchImpl: 'params',
102
+ },
103
+ type: 'chat',
104
+ },
81
105
  {
82
106
  abilities: {
83
107
  functionCall: true,
@@ -27,8 +27,8 @@ export interface ThreadMetadata {
27
27
  completedAt?: string;
28
28
  /** Execution duration in milliseconds */
29
29
  duration?: number;
30
- /** Error message when task failed */
31
- error?: string;
30
+ /** Error details when task failed */
31
+ error?: any;
32
32
  /** Operation ID for tracking */
33
33
  operationId?: string;
34
34
  /** Task start time, used to calculate duration */
@@ -10,19 +10,33 @@ export enum UserMemoryContextObjectType {
10
10
  Knowledge = 'knowledge',
11
11
  Other = 'other',
12
12
  Person = 'person',
13
- Place = 'place'
13
+ Place = 'place',
14
14
  }
15
+ export const CONTEXT_OBJECT_TYPES = Object.values(UserMemoryContextObjectType);
15
16
 
16
17
  export enum UserMemoryContextSubjectType {
17
18
  Item = 'item',
18
19
  Other = 'other',
19
20
  Person = 'person',
20
- Pet = 'pet'
21
+ Pet = 'pet',
21
22
  }
23
+ export const CONTEXT_SUBJECT_TYPES = Object.values(UserMemoryContextSubjectType);
22
24
 
23
25
  export interface UserMemoryContext extends UserMemoryTimestamps {
24
- associatedObjects: { extra?: Record<string, unknown> | null, name?: string, type?: UserMemoryContextObjectType }[] | null;
25
- associatedSubjects: { extra?: Record<string, unknown> | null, name?: string, type?: UserMemoryContextSubjectType }[] | null;
26
+ associatedObjects:
27
+ | {
28
+ extra?: Record<string, unknown> | null;
29
+ name?: string;
30
+ type?: UserMemoryContextObjectType;
31
+ }[]
32
+ | null;
33
+ associatedSubjects:
34
+ | {
35
+ extra?: Record<string, unknown> | null;
36
+ name?: string;
37
+ type?: UserMemoryContextSubjectType;
38
+ }[]
39
+ | null;
26
40
  currentStatus: string | null;
27
41
  description: string | null;
28
42
  descriptionVector: number[] | null;
@@ -97,7 +111,4 @@ export type UserMemoryPreferenceWithoutVectors = Omit<
97
111
  'conclusionDirectivesVector'
98
112
  >;
99
113
 
100
- export type UserMemoryPreferencesListItem = Omit<
101
- UserMemoryPreferenceWithoutVectors,
102
- 'suggestions'
103
- >;
114
+ export type UserMemoryPreferencesListItem = Omit<UserMemoryPreferenceWithoutVectors, 'suggestions'>;
@@ -30,17 +30,20 @@ export enum RelationshipEnum {
30
30
  Uncle = 'uncle',
31
31
  Wife = 'wife',
32
32
  }
33
+ export const RELATIONSHIPS = Object.values(RelationshipEnum);
33
34
 
34
35
  export enum MergeStrategyEnum {
35
36
  Merge = 'merge',
36
37
  Replace = 'replace',
37
38
  }
39
+ export const MERGE_STRATEGIES = Object.values(MergeStrategyEnum);
38
40
 
39
41
  export enum IdentityTypeEnum {
40
42
  Demographic = 'demographic',
41
43
  Personal = 'personal',
42
44
  Professional = 'professional',
43
45
  }
46
+ export const IDENTITY_TYPES = Object.values(IdentityTypeEnum);
44
47
 
45
48
  export enum LayersEnum {
46
49
  Context = 'context',
@@ -48,6 +51,7 @@ export enum LayersEnum {
48
51
  Identity = 'identity',
49
52
  Preference = 'preference',
50
53
  }
54
+ export const MEMORY_LAYERS = Object.values(LayersEnum);
51
55
 
52
56
  export enum TypesEnum {
53
57
  Activity = 'activity',
@@ -61,6 +65,7 @@ export enum TypesEnum {
61
65
  Technology = 'technology',
62
66
  Topic = 'topic',
63
67
  }
68
+ export const MEMORY_TYPES = Object.values(TypesEnum);
64
69
 
65
70
  export enum ContextStatusEnum {
66
71
  Aborted = 'aborted',
@@ -68,5 +73,6 @@ export enum ContextStatusEnum {
68
73
  Completed = 'completed',
69
74
  OnHold = 'on_hold',
70
75
  Ongoing = 'ongoing',
71
- Planned = 'planned'
76
+ Planned = 'planned',
72
77
  }
78
+ export const CONTEXT_STATUS = Object.values(ContextStatusEnum);
@@ -49,6 +49,4 @@ const AuthContainer: FC<PropsWithChildren> = ({ children }) => {
49
49
  );
50
50
  };
51
51
 
52
- AuthContainer.displayName = 'AuthContainer';
53
-
54
52
  export default AuthContainer;
@@ -15,6 +15,4 @@ const AuthLayout: FC<PropsWithChildren> = ({ children }) => {
15
15
  );
16
16
  };
17
17
 
18
- AuthLayout.displayName = 'AuthLayout';
19
-
20
18
  export default AuthLayout;
@@ -1,8 +1,8 @@
1
1
  import { SignIn } from '@clerk/nextjs';
2
2
  import { BRANDING_NAME } from '@lobechat/business-const';
3
- import { notFound } from '@/libs/next/navigation';
4
3
 
5
4
  import { enableClerk } from '@/envs/auth';
5
+ import { notFound } from '@/libs/next/navigation';
6
6
  import { metadataModule } from '@/server/metadata';
7
7
  import { translation } from '@/server/translation';
8
8
  import { type DynamicLayoutProps } from '@/types/next';
@@ -24,6 +24,4 @@ const Page = () => {
24
24
  return <SignIn path="/login" />;
25
25
  };
26
26
 
27
- Page.displayName = 'Login';
28
-
29
27
  export default Page;
@@ -1,7 +1,7 @@
1
1
  import { SignUp } from '@clerk/nextjs';
2
- import { notFound } from '@/libs/next/navigation';
3
2
 
4
3
  import { enableBetterAuth, enableClerk } from '@/envs/auth';
4
+ import { notFound } from '@/libs/next/navigation';
5
5
  import { metadataModule } from '@/server/metadata';
6
6
  import { translation } from '@/server/translation';
7
7
  import { type DynamicLayoutProps } from '@/types/next';
@@ -48,6 +48,4 @@ const Page = () => {
48
48
  return notFound();
49
49
  };
50
50
 
51
- Page.displayName = 'SignUp';
52
-
53
51
  export default Page;
@@ -58,6 +58,4 @@ const OnboardingContainer: FC<PropsWithChildren> = ({ children }) => {
58
58
  );
59
59
  };
60
60
 
61
- OnboardingContainer.displayName = 'OnboardingContainer';
62
-
63
61
  export default OnboardingContainer;
@@ -89,6 +89,4 @@ const Layout: FC = () => {
89
89
  );
90
90
  };
91
91
 
92
- Layout.displayName = 'DesktopMainLayout';
93
-
94
92
  export default Layout;
@@ -30,6 +30,4 @@ const Layout: FC = () => {
30
30
  );
31
31
  };
32
32
 
33
- Layout.displayName = 'DesktopChatLayout';
34
-
35
33
  export default Layout;
@@ -15,6 +15,4 @@ const ChatPortal = () => {
15
15
  );
16
16
  };
17
17
 
18
- ChatPortal.displayName = 'ChatPortal';
19
-
20
18
  export default ChatPortal;
@@ -32,6 +32,4 @@ const Layout = () => {
32
32
  );
33
33
  };
34
34
 
35
- Layout.displayName = 'DesktopDiscoverStoreLayout';
36
-
37
35
  export default Layout;
@@ -18,6 +18,4 @@ const Layout = () => {
18
18
  );
19
19
  };
20
20
 
21
- Layout.displayName = 'DesktopDiscoverAssistantsLayout';
22
-
23
21
  export default Layout;
@@ -18,6 +18,4 @@ const Layout = () => {
18
18
  );
19
19
  };
20
20
 
21
- Layout.displayName = 'DesktopDiscoverToolsLayout';
22
-
23
21
  export default Layout;
@@ -18,6 +18,4 @@ const Layout = () => {
18
18
  );
19
19
  };
20
20
 
21
- Layout.displayName = 'DesktopDiscoverModelsLayout';
22
-
23
21
  export default Layout;
@@ -19,6 +19,4 @@ const Layout: FC = () => {
19
19
  );
20
20
  };
21
21
 
22
- Layout.displayName = 'DesktopDiscoverStoreLayout';
23
-
24
22
  export default Layout;
@@ -30,6 +30,4 @@ const Layout: FC = () => {
30
30
  );
31
31
  };
32
32
 
33
- Layout.displayName = 'DesktopChatLayout';
34
-
35
33
  export default Layout;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { Flexbox } from '@lobehub/ui';
4
4
  import { cssVar } from 'antd-style';
5
- import { memo } from 'react';
5
+ import { Suspense, memo } from 'react';
6
6
 
7
7
  import NavHeader from '@/features/NavHeader';
8
8
  import WideScreenButton from '@/features/WideScreenContainer/WideScreenButton';
@@ -15,7 +15,9 @@ const Header = memo(() => {
15
15
  right={
16
16
  <Flexbox horizontal style={{ backgroundColor: cssVar.colorBgContainer }}>
17
17
  <WideScreenButton />
18
- <ShareButton />
18
+ <Suspense>
19
+ <ShareButton />
20
+ </Suspense>
19
21
  </Flexbox>
20
22
  }
21
23
  />
@@ -14,6 +14,4 @@ const ChatPortal = () => {
14
14
  );
15
15
  };
16
16
 
17
- ChatPortal.displayName = 'ChatPortal';
18
-
19
17
  export default ChatPortal;
@@ -64,6 +64,4 @@ const Layout: FC<LayoutProps> = ({ children }) => {
64
64
  );
65
65
  };
66
66
 
67
- Layout.displayName = 'DesktopHomeLayout';
68
-
69
67
  export default Layout;
@@ -26,6 +26,4 @@ const Home: FC = () => {
26
26
  );
27
27
  };
28
28
 
29
- Home.displayName = 'Home';
30
-
31
29
  export default Home;
@@ -32,6 +32,4 @@ const TopicUrlSync = () => {
32
32
  return null;
33
33
  };
34
34
 
35
- TopicUrlSync.displayName = 'TopicUrlSync';
36
-
37
35
  export default TopicUrlSync;
@@ -22,6 +22,4 @@ const Layout: FC = () => {
22
22
  );
23
23
  };
24
24
 
25
- Layout.displayName = 'DesktopAiImageLayout';
26
-
27
25
  export default Layout;
@@ -18,6 +18,4 @@ const DesktopMemoryLayout: FC = () => {
18
18
  );
19
19
  };
20
20
 
21
- DesktopMemoryLayout.displayName = 'DesktopMemoryLayout';
22
-
23
21
  export default DesktopMemoryLayout;
@@ -20,6 +20,4 @@ const DesktopPagesLayout: FC = () => {
20
20
  );
21
21
  };
22
22
 
23
- DesktopPagesLayout.displayName = 'DesktopPagesLayout';
24
-
25
23
  export default DesktopPagesLayout;
@@ -18,6 +18,4 @@ const HomeLayout: FC = () => {
18
18
  );
19
19
  };
20
20
 
21
- HomeLayout.displayName = 'ResourceHomeLayout';
22
-
23
21
  export default HomeLayout;
@@ -14,6 +14,4 @@ const ResourceLayout: FC = () => {
14
14
  );
15
15
  };
16
16
 
17
- ResourceLayout.displayName = 'ResourceLayout';
18
-
19
17
  export default ResourceLayout;
@@ -21,6 +21,4 @@ const LibraryLayout: FC = () => {
21
21
  );
22
22
  };
23
23
 
24
- LibraryLayout.displayName = 'ResourceLibraryLayout';
25
-
26
24
  export default LibraryLayout;
@@ -21,6 +21,4 @@ const Container: FC<PropsWithChildren> = ({ children }) => {
21
21
  );
22
22
  };
23
23
 
24
- Container.displayName = 'Container';
25
-
26
24
  export default Container;
@@ -25,6 +25,4 @@ const Layout: FC = () => {
25
25
  );
26
26
  };
27
27
 
28
- Layout.displayName = 'DesktopSettingsWrapper';
29
-
30
28
  export default Layout;
@@ -16,6 +16,4 @@ const Page = ({ mobile }: { mobile?: boolean }) => {
16
16
  );
17
17
  };
18
18
 
19
- Page.displayName = 'AboutSetting';
20
-
21
19
  export default Page;
@@ -33,6 +33,4 @@ const Page = () => {
33
33
  );
34
34
  };
35
35
 
36
- Page.displayName = 'SystemAgent';
37
-
38
36
  export default Page;
@@ -14,6 +14,4 @@ const Page = () => {
14
14
  );
15
15
  };
16
16
 
17
- Page.displayName = 'ApiKeySetting';
18
-
19
17
  export default Page;
@@ -15,6 +15,4 @@ const Page = () => {
15
15
  );
16
16
  };
17
17
 
18
- Page.displayName = 'ChatAppearanceSetting';
19
-
20
18
  export default Page;
@@ -16,6 +16,4 @@ const Page = () => {
16
16
  );
17
17
  };
18
18
 
19
- Page.displayName = 'CommonSetting';
20
-
21
19
  export default Page;
@@ -19,6 +19,4 @@ const Page = () => {
19
19
  );
20
20
  };
21
21
 
22
- Page.displayName = 'HotkeySetting';
23
-
24
22
  export default Page;
@@ -14,6 +14,4 @@ const Page = () => {
14
14
  );
15
15
  };
16
16
 
17
- Page.displayName = 'ImageSetting';
18
-
19
17
  export default Page;
@@ -14,6 +14,4 @@ const Page = () => {
14
14
  );
15
15
  };
16
16
 
17
- Page.displayName = 'MemorySetting';
18
-
19
17
  export default Page;
@@ -33,6 +33,4 @@ const Page = (props: { mobile?: boolean }) => {
33
33
  );
34
34
  };
35
35
 
36
- Page.displayName = 'ProviderGrid';
37
-
38
36
  export default Page;
@@ -14,6 +14,4 @@ const Page = () => {
14
14
  );
15
15
  };
16
16
 
17
- Page.displayName = 'ProxySetting';
18
-
19
17
  export default Page;
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
 
3
3
  import { Skeleton } from '@lobehub/ui';
4
- import dynamic from '@/libs/next/dynamic';
5
4
  import { useTranslation } from 'react-i18next';
6
5
  import { Navigate } from 'react-router-dom';
7
6
 
8
7
  import SettingHeader from '@/app/[variants]/(main)/settings/features/SettingHeader';
9
8
  import { enableClerk } from '@/envs/auth';
9
+ import dynamic from '@/libs/next/dynamic';
10
10
 
11
11
  const ClerkProfile = dynamic(() => import('./features/ClerkProfile'), {
12
12
  loading: () => (
@@ -27,6 +27,4 @@ const Page = () => {
27
27
  );
28
28
  };
29
29
 
30
- Page.displayName = 'SecuritySetting';
31
-
32
30
  export default Page;
@@ -14,6 +14,4 @@ const Page = () => {
14
14
  );
15
15
  };
16
16
 
17
- Page.displayName = 'StorageSetting';
18
-
19
17
  export default Page;
@@ -16,6 +16,4 @@ const Page = () => {
16
16
  );
17
17
  };
18
18
 
19
- Page.displayName = 'TtsSetting';
20
-
21
19
  export default Page;
@@ -15,6 +15,4 @@ const Layout: FC = () => {
15
15
  );
16
16
  };
17
17
 
18
- Layout.displayName = 'MobileHomeLayout';
19
-
20
18
  export default Layout;
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
- import dynamic from '@/libs/next/dynamic';
4
3
  import { type FC, Suspense } from 'react';
5
4
  import { Outlet, useLocation } from 'react-router-dom';
6
5
 
7
6
  import Loading from '@/components/Loading/BrandTextLoading';
8
7
  import { MarketAuthProvider } from '@/layout/AuthProvider/MarketAuth';
8
+ import dynamic from '@/libs/next/dynamic';
9
9
  import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
10
10
  import { NavigatorRegistrar } from '@/utils/router';
11
11
 
@@ -42,6 +42,4 @@ const MobileMainLayout: FC = () => {
42
42
  );
43
43
  };
44
44
 
45
- MobileMainLayout.displayName = 'MobileMainLayout';
46
-
47
45
  export default MobileMainLayout;
@@ -23,6 +23,4 @@ const Layout: FC = () => {
23
23
  );
24
24
  };
25
25
 
26
- Layout.displayName = 'MobileChatLayout';
27
-
28
26
  export default Layout;
@@ -14,6 +14,4 @@ const Layout = ({ children }: PropsWithChildren) => (
14
14
  </MobileContentLayout>
15
15
  );
16
16
 
17
- Layout.displayName = 'MobileSessionSettingsLayout';
18
-
19
17
  export default Layout;
@@ -16,6 +16,4 @@ const Layout = () => {
16
16
  );
17
17
  };
18
18
 
19
- Layout.displayName = 'MobileDiscoverDetailLayout';
20
-
21
19
  export default Layout;
@@ -23,6 +23,4 @@ const Layout = () => {
23
23
  );
24
24
  };
25
25
 
26
- Layout.displayName = 'MobileDiscoverLayout';
27
-
28
26
  export default Layout;
@@ -4,6 +4,4 @@ const Layout = () => {
4
4
  return <Outlet />;
5
5
  };
6
6
 
7
- Layout.displayName = 'MobileDiscoverStoreLayout';
8
-
9
7
  export default Layout;
@@ -14,6 +14,4 @@ const ClientRouter = () => {
14
14
  );
15
15
  };
16
16
 
17
- ClientRouter.displayName = 'ClientRouter';
18
-
19
17
  export default ClientRouter;
@@ -19,6 +19,4 @@ const Layout = () => {
19
19
  );
20
20
  };
21
21
 
22
- Layout.displayName = 'MobileSettingsLayout';
23
-
24
22
  export default Layout;
@@ -48,6 +48,4 @@ const OnBoardingContainer: FC<PropsWithChildren> = ({ children }) => {
48
48
  );
49
49
  };
50
50
 
51
- OnBoardingContainer.displayName = 'OnBoardingContainer';
52
-
53
51
  export default OnBoardingContainer;
@@ -36,6 +36,4 @@ const ClientRouter = () => {
36
36
  );
37
37
  };
38
38
 
39
- ClientRouter.displayName = 'ClientRouter';
40
-
41
39
  export default ClientRouter;