@lobehub/lobehub 2.0.0-next.128 → 2.0.0-next.129
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 +6 -6
- package/README.zh-CN.md +6 -6
- package/changelog/v1.json +9 -0
- package/docs/development/database-schema.dbml +8 -6
- package/package.json +1 -1
- package/packages/database/migrations/0050_thread_and_user_id.sql +18 -0
- package/packages/database/migrations/meta/0050_snapshot.json +8792 -0
- package/packages/database/migrations/meta/_journal.json +7 -0
- package/packages/database/src/core/migrations.json +51 -10
- package/packages/database/src/repositories/knowledge/index.test.ts +17 -5
- package/packages/database/src/repositories/knowledge/index.ts +6 -6
- package/packages/database/src/schemas/nextauth.ts +3 -3
- package/packages/database/src/schemas/topic.ts +8 -3
- package/packages/types/src/topic/thread.ts +3 -3
- package/src/store/chat/slices/thread/action.ts +1 -1
- package/src/store/chat/slices/thread/initialState.ts +1 -1
- package/src/store/chat/slices/thread/selectors/util.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.129](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.128...v2.0.0-next.129)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-11-28**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Filter out file with `sourceType` = `file`.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Filter out file with `sourceType` = `file`, closes [#10474](https://github.com/lobehub/lobe-chat/issues/10474) ([e1c99a0](https://github.com/lobehub/lobe-chat/commit/e1c99a0))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.128](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.127...v2.0.0-next.128)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-11-28**</sup>
|
package/README.md
CHANGED
|
@@ -345,12 +345,12 @@ In addition, these plugins are not limited to news aggregation, but can also ext
|
|
|
345
345
|
|
|
346
346
|
<!-- PLUGIN LIST -->
|
|
347
347
|
|
|
348
|
-
| Recent Submits
|
|
349
|
-
|
|
|
350
|
-
| [
|
|
351
|
-
| [
|
|
352
|
-
| [
|
|
353
|
-
| [
|
|
348
|
+
| Recent Submits | Description |
|
|
349
|
+
| -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
350
|
+
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-11-28**</sup> | Analyze stocks and get comprehensive real-time investment data and analytics.<br/>`stock` |
|
|
351
|
+
| [SEO](https://lobechat.com/discover/plugin/SEO)<br/><sup>By **orrenprunckun** on **2025-11-14**</sup> | Enter any URL and keyword and get an On-Page SEO analysis & insights!<br/>`seo` |
|
|
352
|
+
| [Shopping tools](https://lobechat.com/discover/plugin/ShoppingTools)<br/><sup>By **shoppingtools** on **2025-10-27**</sup> | Search for products on eBay & AliExpress, find eBay events & coupons. Get prompt examples.<br/>`shopping` `e-bay` `ali-express` `coupons` |
|
|
353
|
+
| [Web](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | Smart web search that reads and analyzes pages to deliver comprehensive answers from Google results.<br/>`web` `search` |
|
|
354
354
|
|
|
355
355
|
> 📊 Total plugins: [<kbd>**41**</kbd>](https://lobechat.com/discover/plugins)
|
|
356
356
|
|
package/README.zh-CN.md
CHANGED
|
@@ -338,12 +338,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
338
338
|
|
|
339
339
|
<!-- PLUGIN LIST -->
|
|
340
340
|
|
|
341
|
-
| 最近新增
|
|
342
|
-
|
|
|
343
|
-
| [
|
|
344
|
-
| [
|
|
345
|
-
| [
|
|
346
|
-
| [
|
|
341
|
+
| 最近新增 | 描述 |
|
|
342
|
+
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
|
|
343
|
+
| [PortfolioMeta](https://lobechat.com/discover/plugin/StockData)<br/><sup>By **portfoliometa** on **2025-11-28**</sup> | 分析股票并获取全面的实时投资数据和分析。<br/>`股票` |
|
|
344
|
+
| [SEO](https://lobechat.com/discover/plugin/SEO)<br/><sup>By **orrenprunckun** on **2025-11-14**</sup> | 输入任何 URL 和关键词,获取页面 SEO 分析和见解!<br/>`seo` |
|
|
345
|
+
| [购物工具](https://lobechat.com/discover/plugin/ShoppingTools)<br/><sup>By **shoppingtools** on **2025-10-27**</sup> | 在 eBay 和 AliExpress 上搜索产品,查找 eBay 活动和优惠券。获取快速示例。<br/>`购物` `e-bay` `ali-express` `优惠券` |
|
|
346
|
+
| [网页](https://lobechat.com/discover/plugin/web)<br/><sup>By **Proghit** on **2025-01-24**</sup> | 智能网页搜索,读取和分析页面,以提供来自 Google 结果的全面答案。<br/>`网页` `搜索` |
|
|
347
347
|
|
|
348
348
|
> 📊 Total plugins: [<kbd>**41**</kbd>](https://lobechat.com/discover/plugins)
|
|
349
349
|
|
package/changelog/v1.json
CHANGED
|
@@ -506,7 +506,7 @@ table nextauth_accounts {
|
|
|
506
506
|
session_state text
|
|
507
507
|
token_type text
|
|
508
508
|
type text [not null]
|
|
509
|
-
|
|
509
|
+
user_id text [not null]
|
|
510
510
|
|
|
511
511
|
indexes {
|
|
512
512
|
(provider, providerAccountId) [pk]
|
|
@@ -521,17 +521,17 @@ table nextauth_authenticators {
|
|
|
521
521
|
credentialPublicKey text [not null]
|
|
522
522
|
providerAccountId text [not null]
|
|
523
523
|
transports text
|
|
524
|
-
|
|
524
|
+
user_id text [not null]
|
|
525
525
|
|
|
526
526
|
indexes {
|
|
527
|
-
(
|
|
527
|
+
(user_id, credentialID) [pk]
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
table nextauth_sessions {
|
|
532
532
|
expires timestamp [not null]
|
|
533
533
|
sessionToken text [pk, not null]
|
|
534
|
-
|
|
534
|
+
user_id text [not null]
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
table nextauth_verificationtokens {
|
|
@@ -925,10 +925,12 @@ table sessions {
|
|
|
925
925
|
table threads {
|
|
926
926
|
id text [pk, not null]
|
|
927
927
|
title text
|
|
928
|
+
content text
|
|
929
|
+
editor_data jsonb
|
|
928
930
|
type text [not null]
|
|
929
|
-
status text
|
|
931
|
+
status text
|
|
930
932
|
topic_id text [not null]
|
|
931
|
-
source_message_id text
|
|
933
|
+
source_message_id text
|
|
932
934
|
parent_thread_id text
|
|
933
935
|
client_id text
|
|
934
936
|
user_id text [not null]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.129",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent 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",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
ALTER TABLE "nextauth_accounts" RENAME COLUMN "userId" TO "user_id";--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "nextauth_authenticators" RENAME COLUMN "userId" TO "user_id";--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "nextauth_sessions" RENAME COLUMN "userId" TO "user_id";--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "nextauth_accounts" DROP CONSTRAINT "nextauth_accounts_userId_users_id_fk";
|
|
5
|
+
--> statement-breakpoint
|
|
6
|
+
ALTER TABLE "nextauth_authenticators" DROP CONSTRAINT "nextauth_authenticators_userId_users_id_fk";
|
|
7
|
+
--> statement-breakpoint
|
|
8
|
+
ALTER TABLE "nextauth_sessions" DROP CONSTRAINT "nextauth_sessions_userId_users_id_fk";
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
ALTER TABLE "nextauth_authenticators" DROP CONSTRAINT "nextauth_authenticators_userId_credentialID_pk";--> statement-breakpoint
|
|
11
|
+
ALTER TABLE "threads" ALTER COLUMN "status" DROP DEFAULT;--> statement-breakpoint
|
|
12
|
+
ALTER TABLE "threads" ALTER COLUMN "source_message_id" DROP NOT NULL;--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "nextauth_authenticators" ADD CONSTRAINT "nextauth_authenticators_user_id_credentialID_pk" PRIMARY KEY("user_id","credentialID");--> statement-breakpoint
|
|
14
|
+
ALTER TABLE "threads" ADD COLUMN IF NOT EXISTS "content" text;--> statement-breakpoint
|
|
15
|
+
ALTER TABLE "threads" ADD COLUMN IF NOT EXISTS "editor_data" jsonb;--> statement-breakpoint
|
|
16
|
+
ALTER TABLE "nextauth_accounts" ADD CONSTRAINT "nextauth_accounts_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
17
|
+
ALTER TABLE "nextauth_authenticators" ADD CONSTRAINT "nextauth_authenticators_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
18
|
+
ALTER TABLE "nextauth_sessions" ADD CONSTRAINT "nextauth_sessions_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;
|