@lobehub/chat 0.162.20 → 0.162.21
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 +25 -0
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/package.json +2 -2
- package/src/app/(main)/(mobile)/me/(home)/features/useCategory.tsx +7 -0
- package/src/app/(main)/chat/@session/_layout/Desktop/index.tsx +3 -0
- package/src/app/(main)/chat/@session/_layout/Mobile/index.tsx +3 -0
- package/src/app/(main)/market/_layout/Desktop/index.tsx +1 -0
- package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +4 -0
- package/src/features/User/UserPanel/useMenu.tsx +7 -0
- package/src/store/session/slices/session/selectors/meta.test.ts +1 -1
- package/src/store/session/slices/session/selectors/meta.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.162.21](https://github.com/lobehub/lobe-chat/compare/v0.162.20...v0.162.21)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-06-09**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Do not show noDescription in new sesstion.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **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))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.162.20](https://github.com/lobehub/lobe-chat/compare/v0.162.19...v0.162.20)
|
|
6
31
|
|
|
7
32
|
<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
|
-
| [
|
|
269
|
-
| [
|
|
270
|
-
| [
|
|
271
|
-
| [
|
|
272
|
-
|
|
273
|
-
> 📊 Total agents: [<kbd>**
|
|
266
|
+
| Recent Submits | Description |
|
|
267
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
268
|
+
| [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` |
|
|
269
|
+
| [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` |
|
|
270
|
+
| [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` |
|
|
271
|
+
| [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` |
|
|
272
|
+
|
|
273
|
+
> 📊 Total agents: [<kbd>**286**</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
|
-
| [
|
|
257
|
-
| [
|
|
258
|
-
| [
|
|
259
|
-
| [
|
|
260
|
-
|
|
261
|
-
> 📊 Total agents: [<kbd>**
|
|
254
|
+
| 最近新增 | 助手说明 |
|
|
255
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
256
|
+
| [通俗科普创作助手](https://chat-preview.lobehub.com/market?agent=popular-science-writer)<br/><sup>By **[ShinChven](https://github.com/ShinChven)** on **2024-06-08**</sup> | 通俗科普创作助手,用生活化语言讲科学概念,讲故事、使用例子和比喻,激发兴趣,强调重要性。<br/>`科普写作` `科学普及` `创意表达` |
|
|
257
|
+
| [审稿回复专家](https://chat-preview.lobehub.com/market?agent=academic-editor-en)<br/><sup>By **[Starlitnightly](https://github.com/Starlitnightly)** on **2024-06-03**</sup> | 擅长自然学术编辑,协助作者回复审稿人意见,科学、礼貌、逐点回应。<br/>`学术编辑` `审稿意见回复` `科学写作` |
|
|
258
|
+
| [小说翻译 英译中](https://chat-preview.lobehub.com/market?agent=noveltranslation)<br/><sup>By **[xbtachlb](https://github.com/xbtachlb)** on **2024-06-03**</sup> | 小说二次翻译<br/>`翻译` |
|
|
259
|
+
| [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` `系统运维` `配置文件` `转换` |
|
|
260
|
+
|
|
261
|
+
> 📊 Total agents: [<kbd>**286**</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.
|
|
3
|
+
"version": "0.162.21",
|
|
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": "^
|
|
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,
|
|
@@ -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(
|
|
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' }) :
|
|
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
|
-
|
|
34
|
-
|
|
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,
|