@lobehub/chat 0.162.20 → 0.162.22

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/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.162.22](https://github.com/lobehub/lobe-chat/compare/v0.162.21...v0.162.22)
6
+
7
+ <sup>Released on **2024-06-11**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Expand `Clear` tooltip maxWidth.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Expand `Clear` tooltip maxWidth, closes [#2822](https://github.com/lobehub/lobe-chat/issues/2822) ([a5c3d6f](https://github.com/lobehub/lobe-chat/commit/a5c3d6f))
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 0.162.21](https://github.com/lobehub/lobe-chat/compare/v0.162.20...v0.162.21)
31
+
32
+ <sup>Released on **2024-06-09**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Do not show noDescription in new sesstion.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Do not show noDescription in new sesstion, closes [#2749](https://github.com/lobehub/lobe-chat/issues/2749) ([30b00aa](https://github.com/lobehub/lobe-chat/commit/30b00aa))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 0.162.20](https://github.com/lobehub/lobe-chat/compare/v0.162.19...v0.162.20)
6
56
 
7
57
  <sup>Released on **2024-06-08**</sup>
package/README.md CHANGED
@@ -263,14 +263,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
263
263
 
264
264
  <!-- AGENT LIST -->
265
265
 
266
- | Recent Submits | Description |
267
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
268
- | [Expert Response to Reviewer](https://chat-preview.lobehub.com/market?agent=academic-editor-en)<br/><sup>By **[Starlitnightly](https://github.com/Starlitnightly)** on **2024-06-03**</sup> | Specializing in natural academic editing, assisting authors in responding to reviewer comments in a scientific, courteous, and point-by-point manner.<br/>`academic-editing` `response-to-reviewer-comments` `scientific-writing` |
269
- | [Translation of Novels: English to Chinese](https://chat-preview.lobehub.com/market?agent=noveltranslation)<br/><sup>By **[xbtachlb](https://github.com/xbtachlb)** on **2024-06-03**</sup> | Secondary translation of novels<br/>`translation` |
270
- | [Convert Docker to Docker Compose](https://chat-preview.lobehub.com/market?agent=onekr-docker-2-compose)<br/><sup>By **[onekr-billy](https://github.com/onekr-billy)** on **2024-05-31**</sup> | Specialized in converting Docker run commands to Docker Compose configurations<br/>`docker` `docker-compose` `system-administration` `configuration-file` `conversion` |
271
- | [Java Class to MySQL](https://chat-preview.lobehub.com/market?agent=onekr-java-2-sql)<br/><sup>By **[onekr-billy](https://github.com/onekr-billy)** on **2024-05-31**</sup> | Specialized in generating SQL scripts that comply with MySQL specifications based on Java class files.<br/>`java-class-to-my-sql` `backend-development` `sql-scripts` `data-conversion` `databases` |
272
-
273
- > 📊 Total agents: [<kbd>**285**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
266
+ | Recent Submits | Description |
267
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
268
+ | [Mr. MySQL](https://chat-preview.lobehub.com/market?agent=mysql-haoteacher)<br/><sup>By **[yayoinoyume](https://github.com/yayoinoyume)** on **2024-06-09**</sup> | Mr. MySQL is a great teacher to help everyone learn MySQL<br/>`mysql` `programming` `learning` |
269
+ | [Popular Science Writing Assistant](https://chat-preview.lobehub.com/market?agent=popular-science-writer)<br/><sup>By **[ShinChven](https://github.com/ShinChven)** on **2024-06-08**</sup> | The popular science writing assistant uses everyday language to explain scientific concepts, tells stories, uses examples and metaphors to spark interest, and emphasizes importance.<br/>`science-writing` `science-popularization` `creative-expression` |
270
+ | [Expert Response to Reviewer](https://chat-preview.lobehub.com/market?agent=academic-editor-en)<br/><sup>By **[Starlitnightly](https://github.com/Starlitnightly)** on **2024-06-03**</sup> | Specializing in natural academic editing, assisting authors in responding to reviewer comments in a scientific, courteous, and point-by-point manner.<br/>`academic-editing` `response-to-reviewer-comments` `scientific-writing` |
271
+ | [Translation of Novels: English to Chinese](https://chat-preview.lobehub.com/market?agent=noveltranslation)<br/><sup>By **[xbtachlb](https://github.com/xbtachlb)** on **2024-06-03**</sup> | Secondary translation of novels<br/>`translation` |
272
+
273
+ > 📊 Total agents: [<kbd>**287**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
274
274
 
275
275
  <!-- AGENT LIST -->
276
276
 
package/README.zh-CN.md CHANGED
@@ -251,14 +251,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
251
251
 
252
252
  <!-- AGENT LIST -->
253
253
 
254
- | 最近新增 | 助手说明 |
255
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
256
- | [审稿回复专家](https://chat-preview.lobehub.com/market?agent=academic-editor-en)<br/><sup>By **[Starlitnightly](https://github.com/Starlitnightly)** on **2024-06-03**</sup> | 擅长自然学术编辑,协助作者回复审稿人意见,科学、礼貌、逐点回应。<br/>`学术编辑` `审稿意见回复` `科学写作` |
257
- | [小说翻译 英译中](https://chat-preview.lobehub.com/market?agent=noveltranslation)<br/><sup>By **[xbtachlb](https://github.com/xbtachlb)** on **2024-06-03**</sup> | 小说二次翻译<br/>`翻译` |
258
- | [Docker 转 DockerCompose](https://chat-preview.lobehub.com/market?agent=onekr-docker-2-compose)<br/><sup>By **[onekr-billy](https://github.com/onekr-billy)** on **2024-05-31**</sup> | 擅长将 Docker run 命令转换为 Docker Compose 配置<br/>`docker` `docker-compose` `系统运维` `配置文件` `转换` |
259
- | [Java Class 转 MySQL](https://chat-preview.lobehub.com/market?agent=onekr-java-2-sql)<br/><sup>By **[onekr-billy](https://github.com/onekr-billy)** on **2024-05-31**</sup> | 擅长根据 Java 类文件生成符合 MySQL 规范的 SQL 脚本<br/>`java-class转-my-sql` `后端开发` `sql脚本` `数据转换` `数据库` |
260
-
261
- > 📊 Total agents: [<kbd>**285**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
254
+ | 最近新增 | 助手说明 |
255
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
256
+ | [Mysql 好先生](https://chat-preview.lobehub.com/market?agent=mysql-haoteacher)<br/><sup>By **[yayoinoyume](https://github.com/yayoinoyume)** on **2024-06-09**</sup> | mysql 好先生是帮助所有人学习 mysql 的好老师<br/>`mysql` `编程` `学习` |
257
+ | [通俗科普创作助手](https://chat-preview.lobehub.com/market?agent=popular-science-writer)<br/><sup>By **[ShinChven](https://github.com/ShinChven)** on **2024-06-08**</sup> | 通俗科普创作助手,用生活化语言讲科学概念,讲故事、使用例子和比喻,激发兴趣,强调重要性。<br/>`科普写作` `科学普及` `创意表达` |
258
+ | [审稿回复专家](https://chat-preview.lobehub.com/market?agent=academic-editor-en)<br/><sup>By **[Starlitnightly](https://github.com/Starlitnightly)** on **2024-06-03**</sup> | 擅长自然学术编辑,协助作者回复审稿人意见,科学、礼貌、逐点回应。<br/>`学术编辑` `审稿意见回复` `科学写作` |
259
+ | [小说翻译 英译中](https://chat-preview.lobehub.com/market?agent=noveltranslation)<br/><sup>By **[xbtachlb](https://github.com/xbtachlb)** on **2024-06-03**</sup> | 小说二次翻译<br/>`翻译` |
260
+
261
+ > 📊 Total agents: [<kbd>**287**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
262
262
 
263
263
  <!-- AGENT LIST -->
264
264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.162.20",
3
+ "version": "0.162.22",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -190,7 +190,7 @@
190
190
  "@next/eslint-plugin-next": "^14.2.3",
191
191
  "@peculiar/webcrypto": "^1.4.6",
192
192
  "@testing-library/jest-dom": "^6.4.5",
193
- "@testing-library/react": "^15.0.7",
193
+ "@testing-library/react": "^16.0.0",
194
194
  "@types/chroma-js": "^2.4.4",
195
195
  "@types/debug": "^4.1.12",
196
196
  "@types/diff": "^5.2.1",
@@ -62,6 +62,10 @@ export const useCategory = () => {
62
62
  },
63
63
  ];
64
64
 
65
+ /* ↓ cloud slot ↓ */
66
+
67
+ /* ↑ cloud slot ↑ */
68
+
65
69
  const data: CellProps[] = [
66
70
  {
67
71
  icon: Database,
@@ -101,6 +105,9 @@ export const useCategory = () => {
101
105
  },
102
106
  ...(isLoginWithClerk ? profile : []),
103
107
  ...(enableAuth ? (isLoginWithAuth ? settings : []) : settingsWithoutAuth),
108
+ /* ↓ cloud slot ↓ */
109
+
110
+ /* ↑ cloud slot ↑ */
104
111
  ...(canInstall ? pwa : []),
105
112
  ...(isLogin ? data : []),
106
113
  ...helps,
@@ -8,6 +8,9 @@ const DesktopLayout = ({ children }: PropsWithChildren) => {
8
8
  <>
9
9
  <Header />
10
10
  <PanelBody>{children}</PanelBody>
11
+ {/* ↓ cloud slot ↓ */}
12
+
13
+ {/* ↑ cloud slot ↑ */}
11
14
  </>
12
15
  );
13
16
  };
@@ -12,6 +12,9 @@ const MobileLayout = ({ children }: PropsWithChildren) => {
12
12
  <SessionSearchBar mobile />
13
13
  </div>
14
14
  {children}
15
+ {/* ↓ cloud slot ↓ */}
16
+
17
+ {/* ↑ cloud slot ↑ */}
15
18
  </MobileContentLayout>
16
19
  );
17
20
  };
@@ -35,6 +35,7 @@ const Layout = ({ children, detail }: LayoutProps) => {
35
35
  </Flexbox>
36
36
  </Flexbox>
37
37
  {/* ↓ cloud slot ↓ */}
38
+
38
39
  {/* ↑ cloud slot ↑ */}
39
40
  </>
40
41
  );
@@ -157,6 +157,10 @@ const ProviderConfig = memo<ProviderConfigProps>(
157
157
  },
158
158
  ].filter(Boolean) as FormItemProps[];
159
159
 
160
+ /* ↓ cloud slot ↓ */
161
+
162
+ /* ↑ cloud slot ↑ */
163
+
160
164
  const model: ItemGroup = {
161
165
  children: formItems,
162
166
 
@@ -37,7 +37,11 @@ const Clear = memo(() => {
37
37
  placement={'topRight'}
38
38
  title={t('confirmClearCurrentMessages', { ns: 'chat' })}
39
39
  >
40
- <ActionIcon icon={Eraser} placement={'bottom'} title={actionTitle} />
40
+ <ActionIcon
41
+ icon={Eraser}
42
+ overlayStyle={{ maxWidth: 'none' }}
43
+ placement={'bottom'}
44
+ title={actionTitle} />
41
45
  </Popconfirm>
42
46
  );
43
47
  });
@@ -99,6 +99,10 @@ export const useMenu = () => {
99
99
  },
100
100
  ];
101
101
 
102
+ /* ↓ cloud slot ↓ */
103
+
104
+ /* ↑ cloud slot ↑ */
105
+
102
106
  const pwa: MenuProps['items'] = [
103
107
  {
104
108
  icon: <Icon icon={Download} />,
@@ -207,6 +211,9 @@ export const useMenu = () => {
207
211
  },
208
212
  ...(isLoginWithClerk ? profile : []),
209
213
  ...(isLogin ? settings : []),
214
+ /* ↓ cloud slot ↓ */
215
+
216
+ /* ↑ cloud slot ↑ */
210
217
  ...(canInstall ? pwa : []),
211
218
  ...(isLogin ? data : []),
212
219
  ...helps,
@@ -102,7 +102,7 @@ describe('sessionMetaSelectors', () => {
102
102
  it('should return the default description if none is defined in the meta data', () => {
103
103
  const meta: MetaData = {};
104
104
  const description = sessionMetaSelectors.getDescription(meta);
105
- expect(description).toBe('noDescription'); // Assuming translation returns this key
105
+ expect(description).toBe(undefined); // Assuming translation returns this key
106
106
  });
107
107
  });
108
108
  });
@@ -14,7 +14,7 @@ const currentAgentMeta = (s: SessionStore): MetaData => {
14
14
  const defaultMeta = {
15
15
  avatar: isInbox ? DEFAULT_INBOX_AVATAR : DEFAULT_AVATAR,
16
16
  backgroundColor: DEFAULT_BACKGROUND_COLOR,
17
- description: isInbox ? t('inbox.desc', { ns: 'chat' }) : t('noDescription'),
17
+ description: isInbox ? t('inbox.desc', { ns: 'chat' }) : undefined,
18
18
  title: isInbox ? t('inbox.title', { ns: 'chat' }) : t('defaultSession'),
19
19
  };
20
20
 
@@ -30,8 +30,8 @@ const currentAgentBackgroundColor = (s: SessionStore) => currentAgentMeta(s).bac
30
30
 
31
31
  const getAvatar = (s: MetaData) => s.avatar || DEFAULT_AVATAR;
32
32
  const getTitle = (s: MetaData) => s.title || t('defaultSession', { ns: 'common' });
33
- export const getDescription = (s: MetaData) =>
34
- s.description || t('noDescription', { ns: 'common' });
33
+ // New session do not show 'noDescription'
34
+ export const getDescription = (s: MetaData) => s.description;
35
35
 
36
36
  export const sessionMetaSelectors = {
37
37
  currentAgentAvatar,