@lobehub/lobehub 2.0.0-next.169 → 2.0.0-next.170

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,23 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.170](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.169...v2.0.0-next.170)
6
+
7
+ <sup>Released on **2025-12-12**</sup>
8
+
9
+ <br/>
10
+
11
+ <details>
12
+ <summary><kbd>Improvements and Fixes</kbd></summary>
13
+
14
+ </details>
15
+
16
+ <div align="right">
17
+
18
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
19
+
20
+ </div>
21
+
5
22
  ## [Version 2.0.0-next.169](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.168...v2.0.0-next.169)
6
23
 
7
24
  <sup>Released on **2025-12-12**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,9 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2025-12-12",
5
+ "version": "2.0.0-next.170"
6
+ },
2
7
  {
3
8
  "children": {
4
9
  "fixes": [
@@ -28,6 +28,7 @@ table agents {
28
28
  indexes {
29
29
  (client_id, user_id) [name: 'client_id_user_id_unique', unique]
30
30
  (slug, user_id) [name: 'agents_slug_user_id_unique', unique]
31
+ user_id [name: 'agents_user_id_idx']
31
32
  title [name: 'agents_title_idx']
32
33
  description [name: 'agents_description_idx']
33
34
  }
@@ -258,6 +259,8 @@ table documents {
258
259
  indexes {
259
260
  source [name: 'documents_source_idx']
260
261
  file_type [name: 'documents_file_type_idx']
262
+ source_type [name: 'documents_source_type_idx']
263
+ user_id [name: 'documents_user_id_idx']
261
264
  file_id [name: 'documents_file_id_idx']
262
265
  parent_id [name: 'documents_parent_id_idx']
263
266
  (client_id, user_id) [name: 'documents_client_id_user_id_unique', unique]
@@ -285,6 +288,7 @@ table files {
285
288
 
286
289
  indexes {
287
290
  file_hash [name: 'file_hash_idx']
291
+ user_id [name: 'files_user_id_idx']
288
292
  parent_id [name: 'files_parent_id_idx']
289
293
  (client_id, user_id) [name: 'files_client_id_user_id_unique', unique]
290
294
  }
@@ -1071,6 +1075,8 @@ table users {
1071
1075
  indexes {
1072
1076
  email [name: 'users_email_idx']
1073
1077
  username [name: 'users_username_idx']
1078
+ created_at [name: 'users_created_at_idx']
1079
+ created_at [name: 'users_banned_true_created_at_idx']
1074
1080
  }
1075
1081
  }
1076
1082
 
@@ -1090,6 +1096,7 @@ table user_memories {
1090
1096
  status varchar(255)
1091
1097
  accessed_count bigint [default: 0]
1092
1098
  last_accessed_at "timestamp with time zone" [not null]
1099
+ captured_at "timestamp with time zone" [not null, default: `now()`]
1093
1100
  accessed_at "timestamp with time zone" [not null, default: `now()`]
1094
1101
  created_at "timestamp with time zone" [not null, default: `now()`]
1095
1102
  updated_at "timestamp with time zone" [not null, default: `now()`]
@@ -1097,6 +1104,7 @@ table user_memories {
1097
1104
  indexes {
1098
1105
  summary_vector_1024 [name: 'user_memories_summary_vector_1024_index']
1099
1106
  details_vector_1024 [name: 'user_memories_details_vector_1024_index']
1107
+ user_id [name: 'user_memories_user_id_index']
1100
1108
  }
1101
1109
  }
1102
1110
 
@@ -1116,6 +1124,7 @@ table user_memories_contexts {
1116
1124
  current_status text
1117
1125
  score_impact numeric [default: 0]
1118
1126
  score_urgency numeric [default: 0]
1127
+ captured_at "timestamp with time zone" [not null, default: `now()`]
1119
1128
  accessed_at "timestamp with time zone" [not null, default: `now()`]
1120
1129
  created_at "timestamp with time zone" [not null, default: `now()`]
1121
1130
  updated_at "timestamp with time zone" [not null, default: `now()`]
@@ -1124,6 +1133,7 @@ table user_memories_contexts {
1124
1133
  title_vector [name: 'user_memories_contexts_title_vector_index']
1125
1134
  description_vector [name: 'user_memories_contexts_description_vector_index']
1126
1135
  type [name: 'user_memories_contexts_type_index']
1136
+ user_id [name: 'user_memories_contexts_user_id_index']
1127
1137
  }
1128
1138
  }
1129
1139
 
@@ -1143,6 +1153,7 @@ table user_memories_experiences {
1143
1153
  key_learning text
1144
1154
  key_learning_vector vector(1024)
1145
1155
  score_confidence real [default: 0]
1156
+ captured_at "timestamp with time zone" [not null, default: `now()`]
1146
1157
  accessed_at "timestamp with time zone" [not null, default: `now()`]
1147
1158
  created_at "timestamp with time zone" [not null, default: `now()`]
1148
1159
  updated_at "timestamp with time zone" [not null, default: `now()`]
@@ -1152,6 +1163,8 @@ table user_memories_experiences {
1152
1163
  action_vector [name: 'user_memories_experiences_action_vector_index']
1153
1164
  key_learning_vector [name: 'user_memories_experiences_key_learning_vector_index']
1154
1165
  type [name: 'user_memories_experiences_type_index']
1166
+ user_id [name: 'user_memories_experiences_user_id_index']
1167
+ user_memory_id [name: 'user_memories_experiences_user_memory_id_index']
1155
1168
  }
1156
1169
  }
1157
1170
 
@@ -1167,6 +1180,7 @@ table user_memories_identities {
1167
1180
  episodic_date "timestamp with time zone"
1168
1181
  relationship varchar(255)
1169
1182
  role text
1183
+ captured_at "timestamp with time zone" [not null, default: `now()`]
1170
1184
  accessed_at "timestamp with time zone" [not null, default: `now()`]
1171
1185
  created_at "timestamp with time zone" [not null, default: `now()`]
1172
1186
  updated_at "timestamp with time zone" [not null, default: `now()`]
@@ -1174,6 +1188,8 @@ table user_memories_identities {
1174
1188
  indexes {
1175
1189
  description_vector [name: 'user_memories_identities_description_vector_index']
1176
1190
  type [name: 'user_memories_identities_type_index']
1191
+ user_id [name: 'user_memories_identities_user_id_index']
1192
+ user_memory_id [name: 'user_memories_identities_user_memory_id_index']
1177
1193
  }
1178
1194
  }
1179
1195
 
@@ -1188,12 +1204,15 @@ table user_memories_preferences {
1188
1204
  type varchar(255)
1189
1205
  suggestions text
1190
1206
  score_priority numeric [default: 0]
1207
+ captured_at "timestamp with time zone" [not null, default: `now()`]
1191
1208
  accessed_at "timestamp with time zone" [not null, default: `now()`]
1192
1209
  created_at "timestamp with time zone" [not null, default: `now()`]
1193
1210
  updated_at "timestamp with time zone" [not null, default: `now()`]
1194
1211
 
1195
1212
  indexes {
1196
1213
  conclusion_directives_vector [name: 'user_memories_preferences_conclusion_directives_vector_index']
1214
+ user_id [name: 'user_memories_preferences_user_id_index']
1215
+ user_memory_id [name: 'user_memories_preferences_user_memory_id_index']
1197
1216
  }
1198
1217
  }
1199
1218
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.169",
3
+ "version": "2.0.0-next.170",
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,19 @@
1
+ ALTER TABLE "user_memories" ADD COLUMN IF NOT EXISTS "captured_at" timestamp with time zone DEFAULT now() NOT NULL;--> statement-breakpoint
2
+ ALTER TABLE "user_memories_contexts" ADD COLUMN IF NOT EXISTS "captured_at" timestamp with time zone DEFAULT now() NOT NULL;--> statement-breakpoint
3
+ ALTER TABLE "user_memories_experiences" ADD COLUMN IF NOT EXISTS "captured_at" timestamp with time zone DEFAULT now() NOT NULL;--> statement-breakpoint
4
+ ALTER TABLE "user_memories_identities" ADD COLUMN IF NOT EXISTS "captured_at" timestamp with time zone DEFAULT now() NOT NULL;--> statement-breakpoint
5
+ ALTER TABLE "user_memories_preferences" ADD COLUMN IF NOT EXISTS "captured_at" timestamp with time zone DEFAULT now() NOT NULL;--> statement-breakpoint
6
+ CREATE INDEX IF NOT EXISTS "agents_user_id_idx" ON "agents" USING btree ("user_id");--> statement-breakpoint
7
+ CREATE INDEX IF NOT EXISTS "documents_source_type_idx" ON "documents" USING btree ("source_type");--> statement-breakpoint
8
+ CREATE INDEX IF NOT EXISTS "documents_user_id_idx" ON "documents" USING btree ("user_id");--> statement-breakpoint
9
+ CREATE INDEX IF NOT EXISTS "files_user_id_idx" ON "files" USING btree ("user_id");--> statement-breakpoint
10
+ CREATE INDEX IF NOT EXISTS "users_created_at_idx" ON "users" USING btree ("created_at");--> statement-breakpoint
11
+ CREATE INDEX IF NOT EXISTS "users_banned_true_created_at_idx" ON "users" USING btree ("created_at") WHERE "users"."banned" = true;--> statement-breakpoint
12
+ CREATE INDEX IF NOT EXISTS "user_memories_user_id_index" ON "user_memories" USING btree ("user_id");--> statement-breakpoint
13
+ CREATE INDEX IF NOT EXISTS "user_memories_contexts_user_id_index" ON "user_memories_contexts" USING btree ("user_id");--> statement-breakpoint
14
+ CREATE INDEX IF NOT EXISTS "user_memories_experiences_user_id_index" ON "user_memories_experiences" USING btree ("user_id");--> statement-breakpoint
15
+ CREATE INDEX IF NOT EXISTS "user_memories_experiences_user_memory_id_index" ON "user_memories_experiences" USING btree ("user_memory_id");--> statement-breakpoint
16
+ CREATE INDEX IF NOT EXISTS "user_memories_identities_user_id_index" ON "user_memories_identities" USING btree ("user_id");--> statement-breakpoint
17
+ CREATE INDEX IF NOT EXISTS "user_memories_identities_user_memory_id_index" ON "user_memories_identities" USING btree ("user_memory_id");--> statement-breakpoint
18
+ CREATE INDEX IF NOT EXISTS "user_memories_preferences_user_id_index" ON "user_memories_preferences" USING btree ("user_id");--> statement-breakpoint
19
+ CREATE INDEX IF NOT EXISTS "user_memories_preferences_user_memory_id_index" ON "user_memories_preferences" USING btree ("user_memory_id");