@lobehub/lobehub 2.0.0-next.190 → 2.0.0-next.191

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/changelog/v1.json +9 -0
  3. package/package.json +1 -1
  4. package/packages/const/src/utils/merge.test.ts +679 -0
  5. package/packages/context-engine/src/processors/__tests__/AgentCouncilFlatten.test.ts +0 -20
  6. package/packages/context-engine/src/processors/__tests__/MessageContent.test.ts +5 -23
  7. package/packages/context-engine/src/providers/SystemRoleInjector.ts +0 -1
  8. package/packages/conversation-flow/src/__tests__/fixtures/inputs/agentCouncil/simple.json +4 -19
  9. package/packages/conversation-flow/src/__tests__/fixtures/inputs/agentCouncil/with-supervisor-reply.json +4 -23
  10. package/packages/conversation-flow/src/__tests__/fixtures/inputs/agentGroup/speak-different-agent.json +3 -13
  11. package/packages/conversation-flow/src/__tests__/fixtures/inputs/assistant-chain-with-followup.json +3 -8
  12. package/packages/conversation-flow/src/__tests__/fixtures/inputs/assistantGroup/assistant-with-tools.json +21 -17
  13. package/packages/conversation-flow/src/__tests__/fixtures/inputs/assistantGroup/tools-with-branches.json +15 -15
  14. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/active-index-1.json +3 -13
  15. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/assistant-branch.json +2 -9
  16. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/assistant-group-branches.json +0 -11
  17. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/assistant-user-branch.json +5 -15
  18. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/conversation.json +4 -14
  19. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/multi-assistant-group.json +0 -13
  20. package/packages/conversation-flow/src/__tests__/fixtures/inputs/branch/nested.json +2 -15
  21. package/packages/conversation-flow/src/__tests__/fixtures/inputs/compare/simple.json +4 -9
  22. package/packages/conversation-flow/src/__tests__/fixtures/inputs/compare/with-tools.json +8 -17
  23. package/packages/conversation-flow/src/__tests__/fixtures/inputs/linear-conversation.json +3 -7
  24. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/simple.json +1 -7
  25. package/packages/conversation-flow/src/__tests__/fixtures/inputs/tasks/with-summary.json +10 -11
  26. package/packages/conversation-flow/src/__tests__/fixtures/outputs/agentCouncil/simple.json +2 -32
  27. package/packages/conversation-flow/src/__tests__/fixtures/outputs/agentCouncil/with-supervisor-reply.json +8 -46
  28. package/packages/conversation-flow/src/__tests__/fixtures/outputs/agentGroup/speak-different-agent.json +5 -24
  29. package/packages/conversation-flow/src/__tests__/fixtures/outputs/assistant-chain-with-followup.json +5 -13
  30. package/packages/conversation-flow/src/__tests__/fixtures/outputs/assistantGroup/assistant-with-tools.json +6 -16
  31. package/packages/conversation-flow/src/__tests__/fixtures/outputs/assistantGroup/tools-with-branches.json +6 -17
  32. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/active-index-1.json +4 -18
  33. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/assistant-branch.json +4 -16
  34. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/assistant-group-branches.json +0 -19
  35. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/assistant-user-branch.json +8 -24
  36. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/conversation.json +7 -23
  37. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/multi-assistant-group.json +0 -15
  38. package/packages/conversation-flow/src/__tests__/fixtures/outputs/branch/nested.json +4 -25
  39. package/packages/conversation-flow/src/__tests__/fixtures/outputs/compare/simple.json +2 -13
  40. package/packages/conversation-flow/src/__tests__/fixtures/outputs/compare/with-tools.json +4 -20
  41. package/packages/conversation-flow/src/__tests__/fixtures/outputs/linear-conversation.json +4 -12
  42. package/packages/conversation-flow/src/__tests__/fixtures/outputs/tasks/simple.json +2 -14
  43. package/packages/conversation-flow/src/__tests__/fixtures/outputs/tasks/with-summary.json +20 -22
  44. package/packages/conversation-flow/src/__tests__/indexing.test.ts +0 -35
  45. package/packages/conversation-flow/src/__tests__/structuring.test.ts +0 -41
  46. package/packages/conversation-flow/src/transformation/FlatListBuilder.ts +0 -4
  47. package/packages/conversation-flow/src/transformation/__tests__/BranchResolver.test.ts +0 -10
  48. package/packages/conversation-flow/src/transformation/__tests__/ContextTreeBuilder.test.ts +0 -19
  49. package/packages/conversation-flow/src/transformation/__tests__/FlatListBuilder.test.ts +0 -37
  50. package/packages/conversation-flow/src/transformation/__tests__/MessageCollector.test.ts +0 -12
  51. package/packages/conversation-flow/src/transformation/__tests__/MessageTransformer.test.ts +0 -2
  52. package/packages/database/src/models/message.ts +0 -1
  53. package/packages/prompts/src/prompts/chatMessages/index.test.ts +0 -1
  54. package/packages/prompts/src/prompts/groupChat/__snapshots__/index.test.ts.snap +0 -21
  55. package/packages/prompts/src/prompts/groupChat/index.test.ts +0 -3
  56. package/packages/types/src/message/ui/chat.ts +0 -2
  57. package/src/features/Conversation/store/slices/data/action.test.ts +0 -14
  58. package/src/features/Conversation/store/slices/data/reducer.test.ts +0 -21
  59. package/src/features/Conversation/store/slices/data/reducer.ts +1 -1
  60. package/src/features/Conversation/store/slices/message/action/crud.test.ts +0 -10
  61. package/src/server/modules/Mecha/ContextEngineering/__tests__/serverMessagesEngine.test.ts +3 -5
  62. package/src/server/routers/lambda/__tests__/message.test.ts +1 -2
  63. package/src/server/services/agentRuntime/AgentRuntimeService.ts +109 -109
  64. package/src/server/services/agentRuntime/types.ts +8 -8
  65. package/src/server/services/doc/index.tsx +2 -2
  66. package/src/server/services/generation/index.ts +2 -2
  67. package/src/server/services/message/index.ts +3 -3
  68. package/src/server/services/usage/index.ts +4 -4
  69. package/src/services/chat/chat.test.ts +0 -6
  70. package/src/services/chat/mecha/contextEngineering.test.ts +3 -29
  71. package/src/services/chat/mecha/modelParamsResolver.test.ts +803 -0
  72. package/src/store/chat/agents/GroupOrchestration/createGroupOrchestrationExecutors.ts +0 -2
  73. package/src/store/chat/agents/__tests__/createAgentExecutors/call-tool.test.ts +0 -6
  74. package/src/store/chat/agents/__tests__/createAgentExecutors/fixtures/mockMessages.ts +0 -3
  75. package/src/store/chat/agents/createAgentExecutors.ts +4 -4
  76. package/src/store/chat/slices/aiAgent/actions/__tests__/agentGroup.test.ts +0 -2
  77. package/src/store/chat/slices/aiAgent/actions/__tests__/runAgent.test.ts +0 -3
  78. package/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts +0 -1
  79. package/src/store/chat/slices/builtinTool/actions/__tests__/search.test.ts +0 -4
  80. package/src/store/chat/slices/message/reducer.test.ts +0 -5
  81. package/src/store/chat/slices/message/reducer.ts +1 -1
  82. package/src/store/chat/slices/message/selectors/displayMessage.test.ts +0 -13
  83. package/src/store/chat/slices/message/selectors/displayMessage.ts +3 -34
  84. package/src/store/chat/slices/portal/selectors.test.ts +0 -7
  85. package/src/store/chat/slices/thread/action.test.ts +0 -1
  86. package/src/store/chat/slices/translate/action.test.ts +0 -1
  87. package/src/store/tool/slices/oldStore/action.test.ts +0 -1
@@ -60,8 +60,7 @@
60
60
  "content": "What's the difference between map and forEach in JavaScript?",
61
61
  "parentId": null,
62
62
  "createdAt": 1704067200000,
63
- "updatedAt": 1704067200000,
64
- "meta": {}
63
+ "updatedAt": 1704067200000
65
64
  },
66
65
  {
67
66
  "id": "msg-502",
@@ -70,7 +69,6 @@
70
69
  "parentId": "msg-501",
71
70
  "createdAt": 1704067202000,
72
71
  "updatedAt": 1704067202000,
73
- "meta": {},
74
72
  "metadata": {
75
73
  "totalInputTokens": 18,
76
74
  "totalOutputTokens": 42,
@@ -89,8 +87,7 @@
89
87
  "content": "Can you explain the technical implementation details?",
90
88
  "parentId": "msg-502",
91
89
  "createdAt": 1704067210100,
92
- "updatedAt": 1704067210100,
93
- "meta": {}
90
+ "updatedAt": 1704067210100
94
91
  },
95
92
  {
96
93
  "id": "msg-508",
@@ -99,7 +96,6 @@
99
96
  "parentId": "msg-507",
100
97
  "createdAt": 1704067212100,
101
98
  "updatedAt": 1704067212100,
102
- "meta": {},
103
99
  "metadata": {
104
100
  "totalInputTokens": 68,
105
101
  "totalOutputTokens": 82,
@@ -113,8 +109,7 @@
113
109
  "content": "What about memory usage?",
114
110
  "parentId": "msg-508",
115
111
  "createdAt": 1704067220100,
116
- "updatedAt": 1704067220100,
117
- "meta": {}
112
+ "updatedAt": 1704067220100
118
113
  },
119
114
  {
120
115
  "id": "msg-510",
@@ -123,7 +118,6 @@
123
118
  "parentId": "msg-509",
124
119
  "createdAt": 1704067222100,
125
120
  "updatedAt": 1704067222100,
126
- "meta": {},
127
121
  "metadata": {
128
122
  "totalInputTokens": 160,
129
123
  "totalOutputTokens": 68,
@@ -139,8 +133,7 @@
139
133
  "content": "What's the difference between map and forEach in JavaScript?",
140
134
  "parentId": null,
141
135
  "createdAt": 1704067200000,
142
- "updatedAt": 1704067200000,
143
- "meta": {}
136
+ "updatedAt": 1704067200000
144
137
  },
145
138
  "msg-502": {
146
139
  "id": "msg-502",
@@ -149,7 +142,6 @@
149
142
  "parentId": "msg-501",
150
143
  "createdAt": 1704067202000,
151
144
  "updatedAt": 1704067202000,
152
- "meta": {},
153
145
  "metadata": {
154
146
  "totalInputTokens": 18,
155
147
  "totalOutputTokens": 42,
@@ -164,8 +156,7 @@
164
156
  "content": "Can you show me a practical example?",
165
157
  "parentId": "msg-502",
166
158
  "createdAt": 1704067210000,
167
- "updatedAt": 1704067210000,
168
- "meta": {}
159
+ "updatedAt": 1704067210000
169
160
  },
170
161
  "msg-504": {
171
162
  "id": "msg-504",
@@ -174,7 +165,6 @@
174
165
  "parentId": "msg-503",
175
166
  "createdAt": 1704067212000,
176
167
  "updatedAt": 1704067212000,
177
- "meta": {},
178
168
  "metadata": {
179
169
  "totalInputTokens": 68,
180
170
  "totalOutputTokens": 95,
@@ -188,8 +178,7 @@
188
178
  "content": "Thanks! What about performance differences?",
189
179
  "parentId": "msg-504",
190
180
  "createdAt": 1704067220000,
191
- "updatedAt": 1704067220000,
192
- "meta": {}
181
+ "updatedAt": 1704067220000
193
182
  },
194
183
  "msg-506": {
195
184
  "id": "msg-506",
@@ -198,7 +187,6 @@
198
187
  "parentId": "msg-505",
199
188
  "createdAt": 1704067222000,
200
189
  "updatedAt": 1704067222000,
201
- "meta": {},
202
190
  "metadata": {
203
191
  "totalInputTokens": 175,
204
192
  "totalOutputTokens": 58,
@@ -212,8 +200,7 @@
212
200
  "content": "Can you explain the technical implementation details?",
213
201
  "parentId": "msg-502",
214
202
  "createdAt": 1704067210100,
215
- "updatedAt": 1704067210100,
216
- "meta": {}
203
+ "updatedAt": 1704067210100
217
204
  },
218
205
  "msg-508": {
219
206
  "id": "msg-508",
@@ -222,7 +209,6 @@
222
209
  "parentId": "msg-507",
223
210
  "createdAt": 1704067212100,
224
211
  "updatedAt": 1704067212100,
225
- "meta": {},
226
212
  "metadata": {
227
213
  "totalInputTokens": 68,
228
214
  "totalOutputTokens": 82,
@@ -236,8 +222,7 @@
236
222
  "content": "What about memory usage?",
237
223
  "parentId": "msg-508",
238
224
  "createdAt": 1704067220100,
239
- "updatedAt": 1704067220100,
240
- "meta": {}
225
+ "updatedAt": 1704067220100
241
226
  },
242
227
  "msg-510": {
243
228
  "id": "msg-510",
@@ -246,7 +231,6 @@
246
231
  "parentId": "msg-509",
247
232
  "createdAt": 1704067222100,
248
233
  "updatedAt": 1704067222100,
249
- "meta": {},
250
234
  "metadata": {
251
235
  "totalInputTokens": 160,
252
236
  "totalOutputTokens": 68,
@@ -62,8 +62,7 @@
62
62
  "content": "Write a haiku about programming",
63
63
  "parentId": null,
64
64
  "createdAt": 1704067200000,
65
- "updatedAt": 1704067200000,
66
- "meta": {}
65
+ "updatedAt": 1704067200000
67
66
  },
68
67
  {
69
68
  "id": "msg-202",
@@ -72,7 +71,6 @@
72
71
  "parentId": "msg-201",
73
72
  "createdAt": 1704067203000,
74
73
  "updatedAt": 1704067203000,
75
- "meta": {},
76
74
  "metadata": {
77
75
  "totalInputTokens": 12,
78
76
  "totalOutputTokens": 28,
@@ -90,8 +88,7 @@
90
88
  "content": "I like the first one best!",
91
89
  "parentId": "msg-202",
92
90
  "createdAt": 1704067220000,
93
- "updatedAt": 1704067220000,
94
- "meta": {}
91
+ "updatedAt": 1704067220000
95
92
  },
96
93
  {
97
94
  "id": "msg-206",
@@ -100,7 +97,6 @@
100
97
  "parentId": "msg-205",
101
98
  "createdAt": 1704067222000,
102
99
  "updatedAt": 1704067222000,
103
- "meta": {},
104
100
  "metadata": {
105
101
  "totalInputTokens": 52,
106
102
  "totalOutputTokens": 48,
@@ -114,8 +110,7 @@
114
110
  "content": "Yes, please write one more about debugging!",
115
111
  "parentId": "msg-206",
116
112
  "createdAt": 1704067230000,
117
- "updatedAt": 1704067230000,
118
- "meta": {}
113
+ "updatedAt": 1704067230000
119
114
  },
120
115
  {
121
116
  "id": "msg-210",
@@ -124,7 +119,6 @@
124
119
  "parentId": "msg-209",
125
120
  "createdAt": 1704067232000,
126
121
  "updatedAt": 1704067232000,
127
- "meta": {},
128
122
  "metadata": {
129
123
  "totalInputTokens": 78,
130
124
  "totalOutputTokens": 24,
@@ -140,8 +134,7 @@
140
134
  "content": "Write a haiku about programming",
141
135
  "parentId": null,
142
136
  "createdAt": 1704067200000,
143
- "updatedAt": 1704067200000,
144
- "meta": {}
137
+ "updatedAt": 1704067200000
145
138
  },
146
139
  "msg-202": {
147
140
  "id": "msg-202",
@@ -150,7 +143,6 @@
150
143
  "parentId": "msg-201",
151
144
  "createdAt": 1704067203000,
152
145
  "updatedAt": 1704067203000,
153
- "meta": {},
154
146
  "metadata": {
155
147
  "totalInputTokens": 12,
156
148
  "totalOutputTokens": 28,
@@ -165,7 +157,6 @@
165
157
  "parentId": "msg-201",
166
158
  "createdAt": 1704067203100,
167
159
  "updatedAt": 1704067203100,
168
- "meta": {},
169
160
  "metadata": {
170
161
  "totalInputTokens": 12,
171
162
  "totalOutputTokens": 24,
@@ -180,7 +171,6 @@
180
171
  "parentId": "msg-201",
181
172
  "createdAt": 1704067203200,
182
173
  "updatedAt": 1704067203200,
183
- "meta": {},
184
174
  "metadata": {
185
175
  "totalInputTokens": 12,
186
176
  "totalOutputTokens": 26,
@@ -194,8 +184,7 @@
194
184
  "content": "I like the first one best!",
195
185
  "parentId": "msg-202",
196
186
  "createdAt": 1704067220000,
197
- "updatedAt": 1704067220000,
198
- "meta": {}
187
+ "updatedAt": 1704067220000
199
188
  },
200
189
  "msg-206": {
201
190
  "id": "msg-206",
@@ -204,7 +193,6 @@
204
193
  "parentId": "msg-205",
205
194
  "createdAt": 1704067222000,
206
195
  "updatedAt": 1704067222000,
207
- "meta": {},
208
196
  "metadata": {
209
197
  "totalInputTokens": 52,
210
198
  "totalOutputTokens": 48,
@@ -218,8 +206,7 @@
218
206
  "content": "Actually, I prefer the second one with the dancing variables.",
219
207
  "parentId": "msg-203",
220
208
  "createdAt": 1704067225000,
221
- "updatedAt": 1704067225000,
222
- "meta": {}
209
+ "updatedAt": 1704067225000
223
210
  },
224
211
  "msg-208": {
225
212
  "id": "msg-208",
@@ -228,7 +215,6 @@
228
215
  "parentId": "msg-207",
229
216
  "createdAt": 1704067227000,
230
217
  "updatedAt": 1704067227000,
231
- "meta": {},
232
218
  "metadata": {
233
219
  "totalInputTokens": 48,
234
220
  "totalOutputTokens": 52,
@@ -242,8 +228,7 @@
242
228
  "content": "Yes, please write one more about debugging!",
243
229
  "parentId": "msg-206",
244
230
  "createdAt": 1704067230000,
245
- "updatedAt": 1704067230000,
246
- "meta": {}
231
+ "updatedAt": 1704067230000
247
232
  },
248
233
  "msg-210": {
249
234
  "id": "msg-210",
@@ -252,7 +237,6 @@
252
237
  "parentId": "msg-209",
253
238
  "createdAt": 1704067232000,
254
239
  "updatedAt": 1704067232000,
255
- "meta": {},
256
240
  "metadata": {
257
241
  "totalInputTokens": 78,
258
242
  "totalOutputTokens": 24,
@@ -74,7 +74,6 @@
74
74
  "content": "杭州和北京天气如何",
75
75
  "createdAt": 1704067200000,
76
76
  "id": "msg-user-1",
77
- "meta": {},
78
77
  "metadata": {
79
78
  "activeBranchIndex": 2
80
79
  },
@@ -89,7 +88,6 @@
89
88
  "parentId": "msg-user-1",
90
89
  "createdAt": 1704067240000,
91
90
  "updatedAt": 1704067240000,
92
- "meta": {},
93
91
  "branch": {
94
92
  "activeBranchIndex": 2,
95
93
  "count": 3
@@ -149,7 +147,6 @@
149
147
  "content": "",
150
148
  "createdAt": 1704067202000,
151
149
  "id": "msg-assistant-1",
152
- "meta": {},
153
150
  "metadata": {
154
151
  "totalInputTokens": 3441,
155
152
  "totalOutputTokens": 310,
@@ -172,7 +169,6 @@
172
169
  "content": "",
173
170
  "createdAt": 1704067208000,
174
171
  "id": "msg-assistant-2",
175
- "meta": {},
176
172
  "metadata": {
177
173
  "totalInputTokens": 4128,
178
174
  "totalOutputTokens": 183,
@@ -195,7 +191,6 @@
195
191
  "content": "你是想看现在的实时天气,还是未来几天的天气预报?",
196
192
  "createdAt": 1704067214000,
197
193
  "id": "msg-assistant-3",
198
- "meta": {},
199
194
  "metadata": {
200
195
  "totalInputTokens": 6135,
201
196
  "totalOutputTokens": 508,
@@ -212,7 +207,6 @@
212
207
  "content": "",
213
208
  "createdAt": 1704067220000,
214
209
  "id": "msg-assistant-4",
215
- "meta": {},
216
210
  "metadata": {
217
211
  "totalInputTokens": 3440,
218
212
  "totalOutputTokens": 369,
@@ -242,7 +236,6 @@
242
236
  "content": "我可以帮你查天气 —— 想确认一下你的偏好再去查实时数据。",
243
237
  "createdAt": 1704067229000,
244
238
  "id": "msg-assistant-5",
245
- "meta": {},
246
239
  "metadata": {
247
240
  "totalInputTokens": 6425,
248
241
  "totalOutputTokens": 675,
@@ -256,7 +249,6 @@
256
249
  "content": "",
257
250
  "createdAt": 1704067240000,
258
251
  "id": "msg-assistant-6",
259
- "meta": {},
260
252
  "metadata": {
261
253
  "totalInputTokens": 3441,
262
254
  "totalOutputTokens": 186,
@@ -279,7 +271,6 @@
279
271
  "content": "好的——我可以立刻去查并把结果发给你。",
280
272
  "createdAt": 1704067246000,
281
273
  "id": "msg-assistant-7",
282
- "meta": {},
283
274
  "metadata": {
284
275
  "totalInputTokens": 7604,
285
276
  "totalOutputTokens": 584,
@@ -293,7 +284,6 @@
293
284
  "content": "<searchResults>\n <item title=\"Weather Site\" url=\"https://weather.example.com/\">Weather information...</item>\n</searchResults>",
294
285
  "createdAt": 1704067205000,
295
286
  "id": "msg-tool-1",
296
- "meta": {},
297
287
  "parentId": "msg-assistant-1",
298
288
  "plugin": {
299
289
  "apiName": "search",
@@ -318,7 +308,6 @@
318
308
  "content": "<searchResults>\n <item title=\"Weather Info\" url=\"https://weather2.example.com/\">More weather...</item>\n</searchResults>",
319
309
  "createdAt": 1704067211000,
320
310
  "id": "msg-tool-2",
321
- "meta": {},
322
311
  "parentId": "msg-assistant-2",
323
312
  "plugin": {
324
313
  "apiName": "search",
@@ -333,7 +322,6 @@
333
322
  "content": "<searchResults />",
334
323
  "createdAt": 1704067223000,
335
324
  "id": "msg-tool-3",
336
- "meta": {},
337
325
  "parentId": "msg-assistant-4",
338
326
  "plugin": {
339
327
  "apiName": "search",
@@ -352,7 +340,6 @@
352
340
  "content": "<searchResults />",
353
341
  "createdAt": 1704067226000,
354
342
  "id": "msg-tool-4",
355
- "meta": {},
356
343
  "parentId": "msg-assistant-4",
357
344
  "plugin": {
358
345
  "apiName": "search",
@@ -371,7 +358,6 @@
371
358
  "content": "<searchResults>\n <item title=\"Weather Portal\" url=\"https://weather3.example.com/\">Weather data...</item>\n</searchResults>",
372
359
  "createdAt": 1704067243000,
373
360
  "id": "msg-tool-5",
374
- "meta": {},
375
361
  "parentId": "msg-assistant-6",
376
362
  "plugin": {
377
363
  "apiName": "search",
@@ -395,7 +381,6 @@
395
381
  "content": "杭州和北京天气如何",
396
382
  "createdAt": 1704067200000,
397
383
  "id": "msg-user-1",
398
- "meta": {},
399
384
  "metadata": {
400
385
  "activeBranchIndex": 2
401
386
  },
@@ -110,8 +110,7 @@
110
110
  "content": "What's your favorite programming paradigm?",
111
111
  "parentId": null,
112
112
  "createdAt": 1704067200000,
113
- "updatedAt": 1704067200000,
114
- "meta": {}
113
+ "updatedAt": 1704067200000
115
114
  },
116
115
  {
117
116
  "id": "msg-302",
@@ -120,7 +119,6 @@
120
119
  "parentId": "msg-301",
121
120
  "createdAt": 1704067202000,
122
121
  "updatedAt": 1704067202000,
123
- "meta": {},
124
122
  "metadata": {
125
123
  "totalInputTokens": 10,
126
124
  "totalOutputTokens": 15,
@@ -139,7 +137,6 @@
139
137
  "parentId": "msg-302",
140
138
  "createdAt": 1704067210000,
141
139
  "updatedAt": 1704067210000,
142
- "meta": {},
143
140
  "metadata": {
144
141
  "activeBranchIndex": 1
145
142
  }
@@ -151,7 +148,6 @@
151
148
  "parentId": "msg-305",
152
149
  "createdAt": 1704067212100,
153
150
  "updatedAt": 1704067212100,
154
- "meta": {},
155
151
  "metadata": {
156
152
  "totalInputTokens": 30,
157
153
  "totalOutputTokens": 22,
@@ -169,8 +165,7 @@
169
165
  "content": "What are some benefits of immutability?",
170
166
  "parentId": "msg-307",
171
167
  "createdAt": 1704067220000,
172
- "updatedAt": 1704067220000,
173
- "meta": {}
168
+ "updatedAt": 1704067220000
174
169
  },
175
170
  {
176
171
  "id": "msg-311",
@@ -179,7 +174,6 @@
179
174
  "parentId": "msg-310",
180
175
  "createdAt": 1704067222000,
181
176
  "updatedAt": 1704067222000,
182
- "meta": {},
183
177
  "metadata": {
184
178
  "totalInputTokens": 55,
185
179
  "totalOutputTokens": 16,
@@ -198,7 +192,6 @@
198
192
  "parentId": "msg-311",
199
193
  "createdAt": 1704067230000,
200
194
  "updatedAt": 1704067230000,
201
- "meta": {},
202
195
  "metadata": {
203
196
  "activeBranchIndex": 1
204
197
  }
@@ -210,7 +203,6 @@
210
203
  "parentId": "msg-314",
211
204
  "createdAt": 1704067232100,
212
205
  "updatedAt": 1704067232100,
213
- "meta": {},
214
206
  "metadata": {
215
207
  "totalInputTokens": 75,
216
208
  "totalOutputTokens": 42,
@@ -230,8 +222,7 @@
230
222
  "content": "What's your favorite programming paradigm?",
231
223
  "parentId": null,
232
224
  "createdAt": 1704067200000,
233
- "updatedAt": 1704067200000,
234
- "meta": {}
225
+ "updatedAt": 1704067200000
235
226
  },
236
227
  "msg-302": {
237
228
  "id": "msg-302",
@@ -240,7 +231,6 @@
240
231
  "parentId": "msg-301",
241
232
  "createdAt": 1704067202000,
242
233
  "updatedAt": 1704067202000,
243
- "meta": {},
244
234
  "metadata": {
245
235
  "totalInputTokens": 10,
246
236
  "totalOutputTokens": 15,
@@ -255,7 +245,6 @@
255
245
  "parentId": "msg-301",
256
246
  "createdAt": 1704067202100,
257
247
  "updatedAt": 1704067202100,
258
- "meta": {},
259
248
  "metadata": {
260
249
  "totalInputTokens": 10,
261
250
  "totalOutputTokens": 12,
@@ -270,7 +259,6 @@
270
259
  "parentId": "msg-301",
271
260
  "createdAt": 1704067202200,
272
261
  "updatedAt": 1704067202200,
273
- "meta": {},
274
262
  "metadata": {
275
263
  "totalInputTokens": 10,
276
264
  "totalOutputTokens": 13,
@@ -285,7 +273,6 @@
285
273
  "parentId": "msg-302",
286
274
  "createdAt": 1704067210000,
287
275
  "updatedAt": 1704067210000,
288
- "meta": {},
289
276
  "metadata": {
290
277
  "activeBranchIndex": 1
291
278
  }
@@ -297,7 +284,6 @@
297
284
  "parentId": "msg-305",
298
285
  "createdAt": 1704067212000,
299
286
  "updatedAt": 1704067212000,
300
- "meta": {},
301
287
  "metadata": {
302
288
  "totalInputTokens": 30,
303
289
  "totalOutputTokens": 18,
@@ -312,7 +298,6 @@
312
298
  "parentId": "msg-305",
313
299
  "createdAt": 1704067212100,
314
300
  "updatedAt": 1704067212100,
315
- "meta": {},
316
301
  "metadata": {
317
302
  "totalInputTokens": 30,
318
303
  "totalOutputTokens": 22,
@@ -326,8 +311,7 @@
326
311
  "content": "What are some benefits of immutability?",
327
312
  "parentId": "msg-307",
328
313
  "createdAt": 1704067220000,
329
- "updatedAt": 1704067220000,
330
- "meta": {}
314
+ "updatedAt": 1704067220000
331
315
  },
332
316
  "msg-311": {
333
317
  "id": "msg-311",
@@ -336,7 +320,6 @@
336
320
  "parentId": "msg-310",
337
321
  "createdAt": 1704067222000,
338
322
  "updatedAt": 1704067222000,
339
- "meta": {},
340
323
  "metadata": {
341
324
  "totalInputTokens": 55,
342
325
  "totalOutputTokens": 16,
@@ -351,7 +334,6 @@
351
334
  "parentId": "msg-310",
352
335
  "createdAt": 1704067222100,
353
336
  "updatedAt": 1704067222100,
354
- "meta": {},
355
337
  "metadata": {
356
338
  "totalInputTokens": 55,
357
339
  "totalOutputTokens": 14,
@@ -366,7 +348,6 @@
366
348
  "parentId": "msg-311",
367
349
  "createdAt": 1704067230000,
368
350
  "updatedAt": 1704067230000,
369
- "meta": {},
370
351
  "metadata": {
371
352
  "activeBranchIndex": 1
372
353
  }
@@ -378,7 +359,6 @@
378
359
  "parentId": "msg-314",
379
360
  "createdAt": 1704067232000,
380
361
  "updatedAt": 1704067232000,
381
- "meta": {},
382
362
  "metadata": {
383
363
  "totalInputTokens": 75,
384
364
  "totalOutputTokens": 35,
@@ -393,7 +373,6 @@
393
373
  "parentId": "msg-314",
394
374
  "createdAt": 1704067232100,
395
375
  "updatedAt": 1704067232100,
396
- "meta": {},
397
376
  "metadata": {
398
377
  "totalInputTokens": 75,
399
378
  "totalOutputTokens": 42,
@@ -41,7 +41,6 @@
41
41
  "parentId": null,
42
42
  "createdAt": 1704067200000,
43
43
  "updatedAt": 1704067200000,
44
- "meta": {},
45
44
  "metadata": {
46
45
  "compare": true
47
46
  }
@@ -59,7 +58,6 @@
59
58
  "provider": "openai",
60
59
  "createdAt": 1704067205000,
61
60
  "updatedAt": 1704067205000,
62
- "meta": {},
63
61
  "metadata": {
64
62
  "totalInputTokens": 12,
65
63
  "totalOutputTokens": 145,
@@ -82,7 +80,6 @@
82
80
  "provider": "anthropic",
83
81
  "createdAt": 1704067205100,
84
82
  "updatedAt": 1704067205100,
85
- "meta": {},
86
83
  "metadata": {
87
84
  "totalInputTokens": 12,
88
85
  "totalOutputTokens": 158,
@@ -103,7 +100,6 @@
103
100
  "parentMessageId": "msg-601"
104
101
  },
105
102
  "id": "compare-msg-601-msg-602-msg-603",
106
- "meta": {},
107
103
  "role": "compare",
108
104
  "updatedAt": 1704067205100
109
105
  },
@@ -113,8 +109,7 @@
113
109
  "content": "What about performance differences?",
114
110
  "parentId": "msg-603",
115
111
  "createdAt": 1704067215000,
116
- "updatedAt": 1704067215000,
117
- "meta": {}
112
+ "updatedAt": 1704067215000
118
113
  },
119
114
  {
120
115
  "id": "msg-605",
@@ -123,7 +118,6 @@
123
118
  "parentId": "msg-604",
124
119
  "createdAt": 1704067217000,
125
120
  "updatedAt": 1704067217000,
126
- "meta": {},
127
121
  "metadata": {
128
122
  "totalInputTokens": 182,
129
123
  "totalOutputTokens": 167,
@@ -144,7 +138,6 @@
144
138
  "parentId": null,
145
139
  "createdAt": 1704067200000,
146
140
  "updatedAt": 1704067200000,
147
- "meta": {},
148
141
  "metadata": {
149
142
  "compare": true
150
143
  }
@@ -158,7 +151,6 @@
158
151
  "provider": "openai",
159
152
  "createdAt": 1704067205000,
160
153
  "updatedAt": 1704067205000,
161
- "meta": {},
162
154
  "metadata": {
163
155
  "totalInputTokens": 12,
164
156
  "totalOutputTokens": 145,
@@ -179,7 +171,6 @@
179
171
  "provider": "anthropic",
180
172
  "createdAt": 1704067205100,
181
173
  "updatedAt": 1704067205100,
182
- "meta": {},
183
174
  "metadata": {
184
175
  "totalInputTokens": 12,
185
176
  "totalOutputTokens": 158,
@@ -198,8 +189,7 @@
198
189
  "content": "What about performance differences?",
199
190
  "parentId": "msg-603",
200
191
  "createdAt": 1704067215000,
201
- "updatedAt": 1704067215000,
202
- "meta": {}
192
+ "updatedAt": 1704067215000
203
193
  },
204
194
  "msg-605": {
205
195
  "id": "msg-605",
@@ -208,7 +198,6 @@
208
198
  "parentId": "msg-604",
209
199
  "createdAt": 1704067217000,
210
200
  "updatedAt": 1704067217000,
211
- "meta": {},
212
201
  "metadata": {
213
202
  "totalInputTokens": 182,
214
203
  "totalOutputTokens": 167,