🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
♻️ refactor: clean code
arvinxx4ddb491a7490
diff --git a/packages/database/src/repositories/dataImporter/__tests__/fixtures/agentsToSessions.json b/packages/database/src/repositories/dataImporter/__tests__/fixtures/agentsToSessions.jsonindex 1512e55752e..23b5b1c583b 100644--- a/packages/database/src/repositories/dataImporter/__tests__/fixtures/agentsToSessions.json+++ b/packages/database/src/repositories/dataImporter/__tests__/fixtures/agentsToSessions.json@@ -12,7 +12,6 @@"plugins": [],"chatConfig": {"searchMode": "off",- "displayMode": "chat","historyCount": 8,"searchFCModel": {"model": "gpt-4o-mini",@@ -57,7 +56,6 @@"backgroundColor": null,"plugins": [],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -96,7 +94,6 @@"backgroundColor": "rgba(0,0,0,0)","plugins": [],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": false,"enableAutoCreateTopic": true,@@ -135,7 +132,6 @@"backgroundColor": "rgba(0,0,0,0)","plugins": ["web_search"],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": false,"enableAutoCreateTopic": true,@@ -174,7 +170,6 @@"backgroundColor": null,"plugins": [],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -213,7 +208,6 @@"backgroundColor": "rgba(0,0,0,0)","plugins": [],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": false,"enableAutoCreateTopic": true,@@ -252,7 +246,6 @@"backgroundColor": null,"plugins": [],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -291,7 +284,6 @@"backgroundColor": null,"plugins": [],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -330,7 +322,6 @@"backgroundColor": null,"plugins": [],"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,diff --git a/packages/database/src/repositories/dataImporter/__tests__/fixtures/with-client-id.json b/packages/database/src/repositories/dataImporter/__tests__/fixtures/with-client-id.jsonindex e6fb7ad13b6..a801d1cfb5c 100644--- a/packages/database/src/repositories/dataImporter/__tests__/fixtures/with-client-id.json+++ b/packages/database/src/repositories/dataImporter/__tests__/fixtures/with-client-id.json@@ -80,7 +80,6 @@"clientId": null,"chatConfig": {"searchMode": "off",- "displayMode": "chat","historyCount": 8,"searchFCModel": {"model": "gpt-4o-mini",@@ -126,7 +125,6 @@"plugins": [],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -166,7 +164,6 @@"plugins": [],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": false,"enableAutoCreateTopic": true,@@ -206,7 +203,6 @@"plugins": ["web_search"],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": false,"enableAutoCreateTopic": true,@@ -246,7 +242,6 @@"plugins": [],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -286,7 +281,6 @@"plugins": [],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": false,"enableAutoCreateTopic": true,@@ -326,7 +320,6 @@"plugins": [],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -366,7 +359,6 @@"plugins": [],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -406,7 +398,6 @@"plugins": [],"clientId": null,"chatConfig": {- "displayMode": "chat","historyCount": 8,"enableHistoryCount": true,"enableAutoCreateTopic": true,@@ -447,7 +438,6 @@"clientId": null,"chatConfig": {"searchMode": "off",- "displayMode": "chat","historyCount": 8,"searchFCModel": {"model": "gpt-4o-mini",diff --git a/packages/database/src/repositories/dataImporter/deprecated/__tests__/fixtures/messages.json b/packages/database/src/repositories/dataImporter/deprecated/__tests__/fixtures/messages.jsonindex b5f12233d0f..608d7198875 100644--- a/packages/database/src/repositories/dataImporter/deprecated/__tests__/fixtures/messages.json+++ b/packages/database/src/repositories/dataImporter/deprecated/__tests__/fixtures/messages.json@@ -483,7 +483,6 @@"provider": "anthropic","chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -521,7 +520,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -559,7 +557,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -608,7 +605,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -646,7 +642,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -684,7 +679,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -722,7 +716,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -766,7 +759,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -814,7 +806,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -852,7 +843,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -890,7 +880,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -930,7 +919,6 @@"openingQuestions": ["Question 1", "Question 2"],"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -968,7 +956,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -1006,7 +993,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}@@ -1044,7 +1030,6 @@},"chatConfig": {"autoCreateTopicThreshold": 2,- "displayMode": "chat","enableAutoCreateTopic": true,"historyCount": 1}diff --git a/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts b/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.tsindex 398e138760b..a7661a1690a 100644--- a/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts+++ b/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts@@ -886,7 +886,6 @@ describe('DataImporter', () => {},chatConfig: {autoCreateTopicThreshold: 2,- displayMode: 'chat',enableAutoCreateTopic: true,historyCount: 1,},