@lobehub/chat 1.37.1 → 1.37.2

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,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.37.2](https://github.com/lobehub/lobe-chat/compare/v1.37.1...v1.37.2)
6
+
7
+ <sup>Released on **2024-12-22**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Move pglite to client service.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **misc**: Move pglite to client service, closes [#5133](https://github.com/lobehub/lobe-chat/issues/5133) ([c2ded24](https://github.com/lobehub/lobe-chat/commit/c2ded24))
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
+
5
30
  ### [Version 1.37.1](https://github.com/lobehub/lobe-chat/compare/v1.37.0...v1.37.1)
6
31
 
7
32
  <sup>Released on **2024-12-22**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Move pglite to client service."
6
+ ]
7
+ },
8
+ "date": "2024-12-22",
9
+ "version": "1.37.2"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
@@ -59,14 +59,14 @@
59
59
  "features": {
60
60
  "knowledgeBase": {
61
61
  "desc": "Build your personal knowledge base and easily start conversations with your assistant (coming soon)",
62
- "title": "Support for knowledge base conversations, unlock your second brain"
62
+ "title": "Support for knowledge base conversations"
63
63
  },
64
64
  "localFirst": {
65
65
  "desc": "Chat data is stored entirely in the browser, keeping your data always under your control.",
66
66
  "title": "Local first, privacy first"
67
67
  },
68
68
  "pglite": {
69
- "desc": "Built on PGlite, natively supports AI Native advanced features (vector retrieval)",
69
+ "desc": "Built on PGlite, natively supports AI Native advanced features (vector search)",
70
70
  "title": "Next-generation client storage architecture"
71
71
  }
72
72
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.37.1",
3
+ "version": "1.37.2",
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",
@@ -6,7 +6,7 @@ import { files, globalFiles, users } from '@/database/schemas';
6
6
  import { clientS3Storage } from '@/services/file/ClientS3';
7
7
  import { UploadFileParams } from '@/types/files';
8
8
 
9
- import { ClientService } from './pglite';
9
+ import { ClientService } from './client';
10
10
 
11
11
  const userId = 'file-user';
12
12
 
@@ -1,5 +1,5 @@
1
1
  import { ClientService as DeprecatedService } from './_deprecated';
2
- import { ClientService } from './pglite';
2
+ import { ClientService } from './client';
3
3
  import { ServerService } from './server';
4
4
 
5
5
  const clientService =
@@ -15,7 +15,7 @@ import {
15
15
  import { CURRENT_CONFIG_VERSION } from '@/migrations';
16
16
  import { ImportResults, ImporterEntryData } from '@/types/importer';
17
17
 
18
- import { ClientService } from './pglite';
18
+ import { ClientService } from './client';
19
19
 
20
20
  const userId = 'test-user-id';
21
21
  const service = new ClientService(userId);
@@ -1,5 +1,5 @@
1
1
  import { ClientService as DeprecatedService } from './_deprecated';
2
- import { ClientService } from './pglite';
2
+ import { ClientService } from './client';
3
3
  import { ServerService } from './server';
4
4
 
5
5
  const clientService =
@@ -23,7 +23,7 @@ import {
23
23
  CreateMessageParams,
24
24
  } from '@/types/message';
25
25
 
26
- import { ClientService } from './pglite';
26
+ import { ClientService } from './client';
27
27
 
28
28
  const userId = 'message-db';
29
29
  const sessionId = '1';
@@ -1,5 +1,5 @@
1
1
  import { ClientService as DeprecatedService } from './_deprecated';
2
- import { ClientService } from './pglite';
2
+ import { ClientService } from './client';
3
3
  import { ServerService } from './server';
4
4
 
5
5
  const clientService =
@@ -7,7 +7,7 @@ import { installedPlugins, users } from '@/database/schemas';
7
7
  import { LobeTool } from '@/types/tool';
8
8
  import { LobeToolCustomPlugin } from '@/types/tool/plugin';
9
9
 
10
- import { ClientService } from './pglite';
10
+ import { ClientService } from './client';
11
11
  import { InstallPluginParams } from './type';
12
12
 
13
13
  // Mocking modules and functions
@@ -1,5 +1,5 @@
1
1
  import { ClientService as DeprecatedService } from './_deprecated';
2
- import { ClientService } from './pglite';
2
+ import { ClientService } from './client';
3
3
  import { ServerService } from './server';
4
4
 
5
5
  const clientService =
@@ -15,7 +15,7 @@ import {
15
15
  import { LobeAgentChatConfig, LobeAgentConfig } from '@/types/agent';
16
16
  import { LobeAgentSession, LobeSessionType, SessionGroups } from '@/types/session';
17
17
 
18
- import { ClientService } from './pglite';
18
+ import { ClientService } from './client';
19
19
 
20
20
  const userId = 'message-db';
21
21
  const sessionService = new ClientService(userId);
@@ -1,5 +1,5 @@
1
1
  import { ClientService as DeprecatedService } from './_deprecated';
2
- import { ClientService } from './pglite';
2
+ import { ClientService } from './client';
3
3
  import { ServerService } from './server';
4
4
 
5
5
  const clientService =
@@ -1,5 +1,5 @@
1
1
  import { ClientService as DeprecatedService } from './_deprecated';
2
- import { ClientService } from './pglite';
2
+ import { ClientService } from './client';
3
3
  import { ServerService } from './server';
4
4
 
5
5
  const clientService =
@@ -5,7 +5,7 @@ import { clientDB, initializeDB } from '@/database/client/db';
5
5
  import { sessions, topics, users } from '@/database/schemas';
6
6
  import { ChatTopic } from '@/types/topic';
7
7
 
8
- import { ClientService } from './pglite';
8
+ import { ClientService } from './client';
9
9
 
10
10
  // Mock data
11
11
  const userId = 'topic-user-test';
@@ -7,7 +7,7 @@ import { userSettings, users } from '@/database/schemas';
7
7
  import { UserPreference } from '@/types/user';
8
8
  import { UserSettings } from '@/types/user/settings';
9
9
 
10
- import { ClientService } from './pglite';
10
+ import { ClientService } from './client';
11
11
 
12
12
  const mockUser = {
13
13
  avatar: 'avatar.png',
@@ -1,5 +1,5 @@
1
1
  import { ClientService as DeprecatedService } from './_deprecated';
2
- import { ClientService } from './pglite';
2
+ import { ClientService } from './client';
3
3
  import { ServerService } from './server';
4
4
 
5
5
  const clientService =
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes