@lobehub/chat 1.139.2 → 1.139.3
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/apps/desktop/package.json +1 -1
- package/changelog/v1.json +9 -0
- package/locales/ar/chat.json +3 -1
- package/locales/bg-BG/chat.json +3 -1
- package/locales/de-DE/chat.json +3 -1
- package/locales/en-US/chat.json +3 -1
- package/locales/es-ES/chat.json +3 -1
- package/locales/fa-IR/chat.json +3 -1
- package/locales/fr-FR/chat.json +3 -1
- package/locales/it-IT/chat.json +3 -1
- package/locales/ja-JP/chat.json +3 -1
- package/locales/ko-KR/chat.json +3 -1
- package/locales/nl-NL/chat.json +3 -1
- package/locales/pl-PL/chat.json +3 -1
- package/locales/pt-BR/chat.json +3 -1
- package/locales/ru-RU/chat.json +3 -1
- package/locales/tr-TR/chat.json +3 -1
- package/locales/vi-VN/chat.json +3 -1
- package/locales/zh-CN/chat.json +3 -1
- package/locales/zh-TW/chat.json +3 -1
- package/package.json +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatMinimap/index.tsx +28 -9
- package/src/locales/default/chat.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.139.3](https://github.com/lobehub/lobe-chat/compare/v1.139.2...v1.139.3)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-10-21**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Show message author in minimap.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Show message author in minimap, closes [#9797](https://github.com/lobehub/lobe-chat/issues/9797) ([f6daefb](https://github.com/lobehub/lobe-chat/commit/f6daefb))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.139.2](https://github.com/lobehub/lobe-chat/compare/v1.139.1...v1.139.2)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-10-20**</sup>
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@electron-toolkit/eslint-config-prettier": "^3.0.0",
|
|
40
40
|
"@electron-toolkit/eslint-config-ts": "^3.0.0",
|
|
41
41
|
"@electron-toolkit/preload": "^3.0.1",
|
|
42
|
-
"@electron-toolkit/tsconfig": "^
|
|
42
|
+
"@electron-toolkit/tsconfig": "^2.0.0",
|
|
43
43
|
"@electron-toolkit/utils": "^4.0.0",
|
|
44
44
|
"@lobechat/electron-client-ipc": "workspace:*",
|
|
45
45
|
"@lobechat/electron-server-ipc": "workspace:*",
|
package/changelog/v1.json
CHANGED
package/locales/ar/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "الانتقال إلى الرسالة رقم {{index}}",
|
|
230
230
|
"nextMessage": "الرسالة التالية",
|
|
231
|
-
"previousMessage": "الرسالة السابقة"
|
|
231
|
+
"previousMessage": "الرسالة السابقة",
|
|
232
|
+
"senderAssistant": "المساعد",
|
|
233
|
+
"senderUser": "أنت"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "مساعد جديد",
|
|
234
236
|
"newGroupChat": "إنشاء دردشة جماعية جديدة",
|
package/locales/bg-BG/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Отиди до съобщение № {{index}}",
|
|
230
230
|
"nextMessage": "Следващо съобщение",
|
|
231
|
-
"previousMessage": "Предишно съобщение"
|
|
231
|
+
"previousMessage": "Предишно съобщение",
|
|
232
|
+
"senderAssistant": "Асистент",
|
|
233
|
+
"senderUser": "Ти"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Нов агент",
|
|
234
236
|
"newGroupChat": "Създаване на нов групов чат",
|
package/locales/de-DE/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Zur Nachricht Nr. {{index}} springen",
|
|
230
230
|
"nextMessage": "Nächste Nachricht",
|
|
231
|
-
"previousMessage": "Vorherige Nachricht"
|
|
231
|
+
"previousMessage": "Vorherige Nachricht",
|
|
232
|
+
"senderAssistant": "Assistent",
|
|
233
|
+
"senderUser": "Du"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Neuer Assistent",
|
|
234
236
|
"newGroupChat": "Neue Gruppe erstellen",
|
package/locales/en-US/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Jump to message {{index}}",
|
|
230
230
|
"nextMessage": "Next message",
|
|
231
|
-
"previousMessage": "Previous message"
|
|
231
|
+
"previousMessage": "Previous message",
|
|
232
|
+
"senderAssistant": "Assistant",
|
|
233
|
+
"senderUser": "You"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "New Assistant",
|
|
234
236
|
"newGroupChat": "New Group Chat",
|
package/locales/es-ES/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Ir al mensaje número {{index}}",
|
|
230
230
|
"nextMessage": "Mensaje siguiente",
|
|
231
|
-
"previousMessage": "Mensaje anterior"
|
|
231
|
+
"previousMessage": "Mensaje anterior",
|
|
232
|
+
"senderAssistant": "Asistente",
|
|
233
|
+
"senderUser": "Tú"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Nuevo asistente",
|
|
234
236
|
"newGroupChat": "Crear nuevo chat de grupo",
|
package/locales/fa-IR/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "رفتن به پیام شماره {{index}}",
|
|
230
230
|
"nextMessage": "پیام بعدی",
|
|
231
|
-
"previousMessage": "پیام قبلی"
|
|
231
|
+
"previousMessage": "پیام قبلی",
|
|
232
|
+
"senderAssistant": "دستیار",
|
|
233
|
+
"senderUser": "شما"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "دستیار جدید",
|
|
234
236
|
"newGroupChat": "ایجاد چت گروهی جدید",
|
package/locales/fr-FR/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Aller au message n° {{index}}",
|
|
230
230
|
"nextMessage": "Message suivant",
|
|
231
|
-
"previousMessage": "Message précédent"
|
|
231
|
+
"previousMessage": "Message précédent",
|
|
232
|
+
"senderAssistant": "Assistant",
|
|
233
|
+
"senderUser": "Vous"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Nouvel agent",
|
|
234
236
|
"newGroupChat": "Nouveau groupe de discussion",
|
package/locales/it-IT/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Vai al messaggio n. {{index}}",
|
|
230
230
|
"nextMessage": "Messaggio successivo",
|
|
231
|
-
"previousMessage": "Messaggio precedente"
|
|
231
|
+
"previousMessage": "Messaggio precedente",
|
|
232
|
+
"senderAssistant": "Assistente",
|
|
233
|
+
"senderUser": "Tu"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Nuovo assistente",
|
|
234
236
|
"newGroupChat": "Nuova chat di gruppo",
|
package/locales/ja-JP/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "メッセージ {{index}} へジャンプ",
|
|
230
230
|
"nextMessage": "次のメッセージ",
|
|
231
|
-
"previousMessage": "前のメッセージ"
|
|
231
|
+
"previousMessage": "前のメッセージ",
|
|
232
|
+
"senderAssistant": "アシスタント",
|
|
233
|
+
"senderUser": "あなた"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "新しいエージェント",
|
|
234
236
|
"newGroupChat": "新しいグループチャットを作成",
|
package/locales/ko-KR/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "{{index}}번째 메시지로 이동",
|
|
230
230
|
"nextMessage": "다음 메시지",
|
|
231
|
-
"previousMessage": "이전 메시지"
|
|
231
|
+
"previousMessage": "이전 메시지",
|
|
232
|
+
"senderAssistant": "도우미",
|
|
233
|
+
"senderUser": "당신"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "새 도우미",
|
|
234
236
|
"newGroupChat": "새 그룹 채팅 만들기",
|
package/locales/nl-NL/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Ga naar bericht {{index}}",
|
|
230
230
|
"nextMessage": "Volgend bericht",
|
|
231
|
-
"previousMessage": "Vorig bericht"
|
|
231
|
+
"previousMessage": "Vorig bericht",
|
|
232
|
+
"senderAssistant": "Assistent",
|
|
233
|
+
"senderUser": "Jij"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Nieuwe assistent",
|
|
234
236
|
"newGroupChat": "Nieuwe groepschat",
|
package/locales/pl-PL/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Przejdź do wiadomości nr {{index}}",
|
|
230
230
|
"nextMessage": "Następna wiadomość",
|
|
231
|
-
"previousMessage": "Poprzednia wiadomość"
|
|
231
|
+
"previousMessage": "Poprzednia wiadomość",
|
|
232
|
+
"senderAssistant": "Asystent",
|
|
233
|
+
"senderUser": "Ty"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Nowy asystent",
|
|
234
236
|
"newGroupChat": "Utwórz nowy czat grupowy",
|
package/locales/pt-BR/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Ir para a mensagem nº {{index}}",
|
|
230
230
|
"nextMessage": "Próxima mensagem",
|
|
231
|
-
"previousMessage": "Mensagem anterior"
|
|
231
|
+
"previousMessage": "Mensagem anterior",
|
|
232
|
+
"senderAssistant": "Assistente",
|
|
233
|
+
"senderUser": "Você"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Novo Assistente",
|
|
234
236
|
"newGroupChat": "Criar novo grupo",
|
package/locales/ru-RU/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Перейти к сообщению № {{index}}",
|
|
230
230
|
"nextMessage": "Следующее сообщение",
|
|
231
|
-
"previousMessage": "Предыдущее сообщение"
|
|
231
|
+
"previousMessage": "Предыдущее сообщение",
|
|
232
|
+
"senderAssistant": "Ассистент",
|
|
233
|
+
"senderUser": "Вы"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Создать помощника",
|
|
234
236
|
"newGroupChat": "Создать групповой чат",
|
package/locales/tr-TR/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "{{index}} numaralı mesaja atla",
|
|
230
230
|
"nextMessage": "Sonraki mesaj",
|
|
231
|
-
"previousMessage": "Önceki mesaj"
|
|
231
|
+
"previousMessage": "Önceki mesaj",
|
|
232
|
+
"senderAssistant": "Asistan",
|
|
233
|
+
"senderUser": "Sen"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Yeni Asistan",
|
|
234
236
|
"newGroupChat": "Yeni grup sohbeti oluştur",
|
package/locales/vi-VN/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "Chuyển đến tin nhắn thứ {{index}}",
|
|
230
230
|
"nextMessage": "Tin nhắn tiếp theo",
|
|
231
|
-
"previousMessage": "Tin nhắn trước"
|
|
231
|
+
"previousMessage": "Tin nhắn trước",
|
|
232
|
+
"senderAssistant": "Trợ lý",
|
|
233
|
+
"senderUser": "Bạn"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "Tạo trợ lý mới",
|
|
234
236
|
"newGroupChat": "Tạo nhóm mới",
|
package/locales/zh-CN/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "跳转至第 {{index}} 条消息",
|
|
230
230
|
"nextMessage": "下一条消息",
|
|
231
|
-
"previousMessage": "上一条消息"
|
|
231
|
+
"previousMessage": "上一条消息",
|
|
232
|
+
"senderAssistant": "助手",
|
|
233
|
+
"senderUser": "你"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "新建助手",
|
|
234
236
|
"newGroupChat": "新建群聊",
|
package/locales/zh-TW/chat.json
CHANGED
|
@@ -228,7 +228,9 @@
|
|
|
228
228
|
"minimap": {
|
|
229
229
|
"jumpToMessage": "跳轉至第 {{index}} 條訊息",
|
|
230
230
|
"nextMessage": "下一條訊息",
|
|
231
|
-
"previousMessage": "上一條訊息"
|
|
231
|
+
"previousMessage": "上一條訊息",
|
|
232
|
+
"senderAssistant": "助理",
|
|
233
|
+
"senderUser": "您"
|
|
232
234
|
},
|
|
233
235
|
"newAgent": "新建助手",
|
|
234
236
|
"newGroupChat": "建立群組",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.139.
|
|
3
|
+
"version": "1.139.3",
|
|
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",
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"oidc-provider": "^9.5.1",
|
|
239
239
|
"ollama": "^0.6.0",
|
|
240
240
|
"openai": "^4.104.0",
|
|
241
|
-
"openapi-fetch": "^0.
|
|
241
|
+
"openapi-fetch": "^0.14.0",
|
|
242
242
|
"partial-json": "^0.1.7",
|
|
243
243
|
"path-browserify-esm": "^1.0.6",
|
|
244
244
|
"pdf-parse": "^1.1.1",
|
package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatMinimap/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Icon } from '@lobehub/ui';
|
|
4
|
-
import { Tooltip } from 'antd';
|
|
4
|
+
import { Popover, Tooltip } from 'antd';
|
|
5
5
|
import { createStyles, useTheme } from 'antd-style';
|
|
6
6
|
import debug from 'debug';
|
|
7
7
|
import { ChevronDown, ChevronUp } from 'lucide-react';
|
|
@@ -114,6 +114,19 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
|
114
114
|
indicatorContentActive: css`
|
|
115
115
|
background: ${token.colorPrimary};
|
|
116
116
|
`,
|
|
117
|
+
popoverContent: css`
|
|
118
|
+
max-width: 300px;
|
|
119
|
+
`,
|
|
120
|
+
popoverLabel: css`
|
|
121
|
+
margin-block-end: 4px;
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
color: ${token.colorTextSecondary};
|
|
125
|
+
`,
|
|
126
|
+
popoverText: css`
|
|
127
|
+
color: ${token.colorText};
|
|
128
|
+
word-break: break-word;
|
|
129
|
+
`,
|
|
117
130
|
rail: css`
|
|
118
131
|
pointer-events: auto;
|
|
119
132
|
|
|
@@ -174,6 +187,7 @@ const getPreviewText = (content: string | undefined) => {
|
|
|
174
187
|
interface MinimapIndicator {
|
|
175
188
|
id: string;
|
|
176
189
|
preview: string;
|
|
190
|
+
role: 'user' | 'assistant';
|
|
177
191
|
virtuosoIndex: number;
|
|
178
192
|
width: number;
|
|
179
193
|
}
|
|
@@ -203,6 +217,7 @@ const ChatMinimap = () => {
|
|
|
203
217
|
acc.push({
|
|
204
218
|
id: message.id,
|
|
205
219
|
preview: getPreviewText(message.content),
|
|
220
|
+
role: message.role,
|
|
206
221
|
virtuosoIndex,
|
|
207
222
|
width: getIndicatorWidth(message.content),
|
|
208
223
|
});
|
|
@@ -317,16 +332,20 @@ const ChatMinimap = () => {
|
|
|
317
332
|
</button>
|
|
318
333
|
</Tooltip>
|
|
319
334
|
<Flexbox className={styles.railContent}>
|
|
320
|
-
{indicators.map(({ id, width, preview, virtuosoIndex }, position) => {
|
|
335
|
+
{indicators.map(({ id, width, preview, role, virtuosoIndex }, position) => {
|
|
321
336
|
const isActive = activeIndicatorPosition === position;
|
|
337
|
+
const senderLabel =
|
|
338
|
+
role === 'user' ? t('minimap.senderUser') : t('minimap.senderAssistant');
|
|
339
|
+
|
|
340
|
+
const popoverContent = preview ? (
|
|
341
|
+
<div className={styles.popoverContent}>
|
|
342
|
+
<div className={styles.popoverLabel}>{senderLabel}</div>
|
|
343
|
+
<div className={styles.popoverText}>{preview}</div>
|
|
344
|
+
</div>
|
|
345
|
+
) : undefined;
|
|
322
346
|
|
|
323
347
|
return (
|
|
324
|
-
<
|
|
325
|
-
key={id}
|
|
326
|
-
mouseEnterDelay={0.1}
|
|
327
|
-
placement={'left'}
|
|
328
|
-
title={preview || undefined}
|
|
329
|
-
>
|
|
348
|
+
<Popover content={popoverContent} key={id} mouseEnterDelay={0.1} placement={'left'}>
|
|
330
349
|
<button
|
|
331
350
|
aria-current={isActive ? 'true' : undefined}
|
|
332
351
|
aria-label={t('minimap.jumpToMessage', { index: position + 1 })}
|
|
@@ -344,7 +363,7 @@ const ChatMinimap = () => {
|
|
|
344
363
|
)}
|
|
345
364
|
/>
|
|
346
365
|
</button>
|
|
347
|
-
</
|
|
366
|
+
</Popover>
|
|
348
367
|
);
|
|
349
368
|
})}
|
|
350
369
|
</Flexbox>
|