@adecore/agents-react 0.69.1 → 0.70.1
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/dist/agents/provider-paths.js +3 -1
- package/dist/chat/activity.d.ts +2 -0
- package/dist/chat/activity.js +18 -4
- package/dist/chat/logic/fork.js +1 -0
- package/dist/chat/logic/thread-cards.js +1 -0
- package/dist/chat/logic/timeline.js +10 -0
- package/dist/chat/logic/tools.d.ts +1 -0
- package/dist/chat/logic/tools.js +4 -0
- package/dist/chat/ui/ChatActivity.js +20 -17
- package/dist/chat/ui/rows/MessageRows.d.ts +6 -2
- package/dist/chat/ui/rows/MessageRows.js +152 -48
- package/dist/chat/ui/rows/Rows.js +178 -161
- package/dist/chat/ui/rows/WorkRows.js +125 -112
- package/dist/chat/ui/rows/WorkflowRow.js +2 -2
- package/dist/chat/waiting-on.js +3 -3
- package/dist/host/timeline-row.d.ts +5 -1
- package/dist/locales/en/agent-chat.d.ts +10 -0
- package/dist/locales/en/agent-chat.js +10 -0
- package/dist/locales/nl/agent-chat.d.ts +10 -0
- package/dist/locales/nl/agent-chat.js +10 -0
- package/dist/theme.css +3 -0
- package/dist/usage/format.js +4 -2
- package/package.json +9 -9
- package/src/agents/provider-paths.ts +4 -1
- package/src/chat/activity.ts +21 -5
- package/src/chat/logic/fork.ts +1 -0
- package/src/chat/logic/thread-cards.ts +1 -0
- package/src/chat/logic/timeline.ts +8 -0
- package/src/chat/logic/tools.ts +5 -0
- package/src/chat/ui/ChatActivity.tsx +14 -8
- package/src/chat/ui/rows/MessageRows.tsx +26 -2
- package/src/chat/ui/rows/Rows.tsx +4 -1
- package/src/chat/ui/rows/WorkRows.tsx +5 -4
- package/src/chat/ui/rows/WorkflowRow.tsx +2 -2
- package/src/chat/waiting-on.ts +3 -6
- package/src/host/timeline-row.ts +3 -0
- package/src/locales/en/agent-chat.ts +10 -0
- package/src/locales/nl/agent-chat.ts +10 -0
- package/src/theme.css +3 -0
- package/src/usage/format.ts +4 -2
|
@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { isImageGeneration } from '../../logic/generated-image.js';
|
|
5
5
|
import { ForksRow } from './ForksRow.js';
|
|
6
6
|
import { GeneratedImageRow } from './GeneratedImageRow.js';
|
|
7
|
-
import { AgentTurnRow, ApprovalHistoryRow, AssistantRow, CompactionRow, LiveThoughtRow, NoteRow, QuestionHistoryRow, ReportRow, SelectionSwitchRow, SentByAgentRow, SentMessageRow, ThinkingRow, UnknownRow, UserRow } from './MessageRows.js';
|
|
7
|
+
import { AgentTurnRow, ApprovalHistoryRow, AssistantRow, CompactionRow, LiveThoughtRow, NoteRow, QuestionHistoryRow, ReportRow, SecretRow, SelectionSwitchRow, SentByAgentRow, SentMessageRow, ThinkingRow, UnknownRow, UserRow } from './MessageRows.js';
|
|
8
8
|
import { SubagentBranchRow } from './SubagentRow.js';
|
|
9
9
|
import { VisualRow } from './VisualRow.js';
|
|
10
10
|
import { WorkflowRow } from './WorkflowRow.js';
|
|
@@ -70,7 +70,7 @@ function AppCardRow(t0) {
|
|
|
70
70
|
}
|
|
71
71
|
/* One row of a thread, the chat's own or a subagent's read back, drawn the same way in both. */
|
|
72
72
|
export function Row(t0) {
|
|
73
|
-
const $ = _c(
|
|
73
|
+
const $ = _c(109);
|
|
74
74
|
const {
|
|
75
75
|
row,
|
|
76
76
|
chatId,
|
|
@@ -100,97 +100,100 @@ export function Row(t0) {
|
|
|
100
100
|
case "turn-start":
|
|
101
101
|
{
|
|
102
102
|
const toolUseId = row.turn.taskToolUseId;
|
|
103
|
-
|
|
103
|
+
const t1 = row.turn.wakeup === true;
|
|
104
|
+
let t2;
|
|
104
105
|
if ($[3] !== openSubagent || $[4] !== toolUseId) {
|
|
105
|
-
|
|
106
|
+
t2 = toolUseId ? () => openSubagent(toolUseId) : undefined;
|
|
106
107
|
$[3] = openSubagent;
|
|
107
108
|
$[4] = toolUseId;
|
|
108
|
-
$[5] =
|
|
109
|
+
$[5] = t2;
|
|
109
110
|
} else {
|
|
110
|
-
|
|
111
|
+
t2 = $[5];
|
|
111
112
|
}
|
|
112
|
-
let
|
|
113
|
-
if ($[6] !== row.label || $[7] !== t1) {
|
|
114
|
-
|
|
113
|
+
let t3;
|
|
114
|
+
if ($[6] !== row.label || $[7] !== t1 || $[8] !== t2) {
|
|
115
|
+
t3 = /*#__PURE__*/_jsx(AgentTurnRow, {
|
|
115
116
|
label: row.label,
|
|
116
|
-
|
|
117
|
+
wakeup: t1,
|
|
118
|
+
onOpen: t2
|
|
117
119
|
});
|
|
118
120
|
$[6] = row.label;
|
|
119
121
|
$[7] = t1;
|
|
120
122
|
$[8] = t2;
|
|
123
|
+
$[9] = t3;
|
|
121
124
|
} else {
|
|
122
|
-
|
|
125
|
+
t3 = $[9];
|
|
123
126
|
}
|
|
124
|
-
return
|
|
127
|
+
return t3;
|
|
125
128
|
}
|
|
126
129
|
case "assistant":
|
|
127
130
|
{
|
|
128
131
|
let t1;
|
|
129
|
-
if ($[
|
|
132
|
+
if ($[10] !== chatId || $[11] !== row.item) {
|
|
130
133
|
t1 = /*#__PURE__*/_jsx(AssistantRow, {
|
|
131
134
|
chatId: chatId,
|
|
132
135
|
item: row.item
|
|
133
136
|
});
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
+
$[10] = chatId;
|
|
138
|
+
$[11] = row.item;
|
|
139
|
+
$[12] = t1;
|
|
137
140
|
} else {
|
|
138
|
-
t1 = $[
|
|
141
|
+
t1 = $[12];
|
|
139
142
|
}
|
|
140
143
|
return t1;
|
|
141
144
|
}
|
|
142
145
|
case "report":
|
|
143
146
|
{
|
|
144
147
|
let t1;
|
|
145
|
-
if ($[
|
|
148
|
+
if ($[13] !== row.id || $[14] !== row.text) {
|
|
146
149
|
t1 = /*#__PURE__*/_jsx(ReportRow, {
|
|
147
150
|
id: row.id,
|
|
148
151
|
text: row.text
|
|
149
152
|
});
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
+
$[13] = row.id;
|
|
154
|
+
$[14] = row.text;
|
|
155
|
+
$[15] = t1;
|
|
153
156
|
} else {
|
|
154
|
-
t1 = $[
|
|
157
|
+
t1 = $[15];
|
|
155
158
|
}
|
|
156
159
|
return t1;
|
|
157
160
|
}
|
|
158
161
|
case "thinking":
|
|
159
162
|
{
|
|
160
163
|
let t1;
|
|
161
|
-
if ($[
|
|
164
|
+
if ($[16] !== chatId || $[17] !== row.item) {
|
|
162
165
|
t1 = /*#__PURE__*/_jsx(ThinkingRow, {
|
|
163
166
|
chatId: chatId,
|
|
164
167
|
item: row.item
|
|
165
168
|
});
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
+
$[16] = chatId;
|
|
170
|
+
$[17] = row.item;
|
|
171
|
+
$[18] = t1;
|
|
169
172
|
} else {
|
|
170
|
-
t1 = $[
|
|
173
|
+
t1 = $[18];
|
|
171
174
|
}
|
|
172
175
|
return t1;
|
|
173
176
|
}
|
|
174
177
|
case "live-thought":
|
|
175
178
|
{
|
|
176
179
|
let t1;
|
|
177
|
-
if ($[
|
|
180
|
+
if ($[19] !== chatId || $[20] !== row.item) {
|
|
178
181
|
t1 = /*#__PURE__*/_jsx(LiveThoughtRow, {
|
|
179
182
|
chatId: chatId,
|
|
180
183
|
item: row.item
|
|
181
184
|
});
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
+
$[19] = chatId;
|
|
186
|
+
$[20] = row.item;
|
|
187
|
+
$[21] = t1;
|
|
185
188
|
} else {
|
|
186
|
-
t1 = $[
|
|
189
|
+
t1 = $[21];
|
|
187
190
|
}
|
|
188
191
|
return t1;
|
|
189
192
|
}
|
|
190
193
|
case "work":
|
|
191
194
|
{
|
|
192
195
|
let t1;
|
|
193
|
-
if ($[
|
|
196
|
+
if ($[22] !== chatId || $[23] !== row.tool) {
|
|
194
197
|
t1 = isImageGeneration(row.tool) ? /*#__PURE__*/_jsx(GeneratedImageRow, {
|
|
195
198
|
chatId: chatId,
|
|
196
199
|
tool: row.tool
|
|
@@ -198,18 +201,18 @@ export function Row(t0) {
|
|
|
198
201
|
chatId: chatId,
|
|
199
202
|
tool: row.tool
|
|
200
203
|
});
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
+
$[22] = chatId;
|
|
205
|
+
$[23] = row.tool;
|
|
206
|
+
$[24] = t1;
|
|
204
207
|
} else {
|
|
205
|
-
t1 = $[
|
|
208
|
+
t1 = $[24];
|
|
206
209
|
}
|
|
207
210
|
return t1;
|
|
208
211
|
}
|
|
209
212
|
case "work-live":
|
|
210
213
|
{
|
|
211
214
|
let t1;
|
|
212
|
-
if ($[
|
|
215
|
+
if ($[25] !== chatId || $[26] !== row.tool) {
|
|
213
216
|
t1 = isImageGeneration(row.tool) ? /*#__PURE__*/_jsx(GeneratedImageRow, {
|
|
214
217
|
chatId: chatId,
|
|
215
218
|
tool: row.tool
|
|
@@ -217,47 +220,47 @@ export function Row(t0) {
|
|
|
217
220
|
chatId: chatId,
|
|
218
221
|
tool: row.tool
|
|
219
222
|
});
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
+
$[25] = chatId;
|
|
224
|
+
$[26] = row.tool;
|
|
225
|
+
$[27] = t1;
|
|
223
226
|
} else {
|
|
224
|
-
t1 = $[
|
|
227
|
+
t1 = $[27];
|
|
225
228
|
}
|
|
226
229
|
return t1;
|
|
227
230
|
}
|
|
228
231
|
case "workflow":
|
|
229
232
|
{
|
|
230
233
|
let t1;
|
|
231
|
-
if ($[
|
|
234
|
+
if ($[28] !== chatId || $[29] !== openConversation || $[30] !== row.tool || $[31] !== row.workflow) {
|
|
232
235
|
t1 = /*#__PURE__*/_jsx(WorkflowRow, {
|
|
233
236
|
chatId: chatId,
|
|
234
237
|
tool: row.tool,
|
|
235
238
|
workflow: row.workflow,
|
|
236
239
|
onOpenAgent: openConversation
|
|
237
240
|
});
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
241
|
+
$[28] = chatId;
|
|
242
|
+
$[29] = openConversation;
|
|
243
|
+
$[30] = row.tool;
|
|
244
|
+
$[31] = row.workflow;
|
|
245
|
+
$[32] = t1;
|
|
243
246
|
} else {
|
|
244
|
-
t1 = $[
|
|
247
|
+
t1 = $[32];
|
|
245
248
|
}
|
|
246
249
|
return t1;
|
|
247
250
|
}
|
|
248
251
|
case "work-group":
|
|
249
252
|
{
|
|
250
253
|
let t1;
|
|
251
|
-
if ($[
|
|
254
|
+
if ($[33] !== row.id || $[34] !== toggleGroup) {
|
|
252
255
|
t1 = () => toggleGroup(row.id);
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
+
$[33] = row.id;
|
|
257
|
+
$[34] = toggleGroup;
|
|
258
|
+
$[35] = t1;
|
|
256
259
|
} else {
|
|
257
|
-
t1 = $[
|
|
260
|
+
t1 = $[35];
|
|
258
261
|
}
|
|
259
262
|
let t2;
|
|
260
|
-
if ($[
|
|
263
|
+
if ($[36] !== row.expanded || $[37] !== row.look || $[38] !== row.summary || $[39] !== row.tools || $[40] !== t1) {
|
|
261
264
|
t2 = /*#__PURE__*/_jsx(WorkGroupRow, {
|
|
262
265
|
tools: row.tools,
|
|
263
266
|
summary: row.summary,
|
|
@@ -265,50 +268,50 @@ export function Row(t0) {
|
|
|
265
268
|
expanded: row.expanded,
|
|
266
269
|
onToggle: t1
|
|
267
270
|
});
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
271
|
+
$[36] = row.expanded;
|
|
272
|
+
$[37] = row.look;
|
|
273
|
+
$[38] = row.summary;
|
|
274
|
+
$[39] = row.tools;
|
|
275
|
+
$[40] = t1;
|
|
276
|
+
$[41] = t2;
|
|
274
277
|
} else {
|
|
275
|
-
t2 = $[
|
|
278
|
+
t2 = $[41];
|
|
276
279
|
}
|
|
277
280
|
return t2;
|
|
278
281
|
}
|
|
279
282
|
case "subagent":
|
|
280
283
|
{
|
|
281
284
|
let t1;
|
|
282
|
-
if ($[
|
|
285
|
+
if ($[42] !== chatId || $[43] !== openConversation || $[44] !== row || $[45] !== toggleSubagent) {
|
|
283
286
|
t1 = /*#__PURE__*/_jsx(SubagentBranchRow, {
|
|
284
287
|
chatId: chatId,
|
|
285
288
|
branch: row,
|
|
286
289
|
onToggle: toggleSubagent,
|
|
287
290
|
onOpenConversation: openConversation
|
|
288
291
|
});
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
292
|
+
$[42] = chatId;
|
|
293
|
+
$[43] = openConversation;
|
|
294
|
+
$[44] = row;
|
|
295
|
+
$[45] = toggleSubagent;
|
|
296
|
+
$[46] = t1;
|
|
294
297
|
} else {
|
|
295
|
-
t1 = $[
|
|
298
|
+
t1 = $[46];
|
|
296
299
|
}
|
|
297
300
|
return t1;
|
|
298
301
|
}
|
|
299
302
|
case "turn-fold":
|
|
300
303
|
{
|
|
301
304
|
let t1;
|
|
302
|
-
if ($[
|
|
305
|
+
if ($[47] !== row.turn.id || $[48] !== toggleTurn) {
|
|
303
306
|
t1 = () => toggleTurn(row.turn.id);
|
|
304
|
-
$[
|
|
305
|
-
$[
|
|
306
|
-
$[
|
|
307
|
+
$[47] = row.turn.id;
|
|
308
|
+
$[48] = toggleTurn;
|
|
309
|
+
$[49] = t1;
|
|
307
310
|
} else {
|
|
308
|
-
t1 = $[
|
|
311
|
+
t1 = $[49];
|
|
309
312
|
}
|
|
310
313
|
let t2;
|
|
311
|
-
if ($[
|
|
314
|
+
if ($[50] !== row.expandable || $[51] !== row.expanded || $[52] !== row.label || $[53] !== row.turn || $[54] !== row.work || $[55] !== t1) {
|
|
312
315
|
t2 = /*#__PURE__*/_jsx(TurnFoldRow, {
|
|
313
316
|
turn: row.turn,
|
|
314
317
|
label: row.label,
|
|
@@ -317,31 +320,31 @@ export function Row(t0) {
|
|
|
317
320
|
expandable: row.expandable,
|
|
318
321
|
onToggle: t1
|
|
319
322
|
});
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
323
|
+
$[50] = row.expandable;
|
|
324
|
+
$[51] = row.expanded;
|
|
325
|
+
$[52] = row.label;
|
|
326
|
+
$[53] = row.turn;
|
|
327
|
+
$[54] = row.work;
|
|
328
|
+
$[55] = t1;
|
|
329
|
+
$[56] = t2;
|
|
327
330
|
} else {
|
|
328
|
-
t2 = $[
|
|
331
|
+
t2 = $[56];
|
|
329
332
|
}
|
|
330
333
|
return t2;
|
|
331
334
|
}
|
|
332
335
|
case "forks":
|
|
333
336
|
{
|
|
334
337
|
let t1;
|
|
335
|
-
if ($[
|
|
338
|
+
if ($[57] !== chatId || $[58] !== row.turnId) {
|
|
336
339
|
t1 = /*#__PURE__*/_jsx(ForksRow, {
|
|
337
340
|
chatId: chatId,
|
|
338
341
|
turnId: row.turnId
|
|
339
342
|
});
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
+
$[57] = chatId;
|
|
344
|
+
$[58] = row.turnId;
|
|
345
|
+
$[59] = t1;
|
|
343
346
|
} else {
|
|
344
|
-
t1 = $[
|
|
347
|
+
t1 = $[59];
|
|
345
348
|
}
|
|
346
349
|
return t1;
|
|
347
350
|
}
|
|
@@ -349,7 +352,7 @@ export function Row(t0) {
|
|
|
349
352
|
{
|
|
350
353
|
const t1 = row.heldBack === true;
|
|
351
354
|
let t2;
|
|
352
|
-
if ($[
|
|
355
|
+
if ($[60] !== chatId || $[61] !== row.baseMoved || $[62] !== row.checkpoint || $[63] !== row.diff || $[64] !== row.tools || $[65] !== row.turnId || $[66] !== t1) {
|
|
353
356
|
t2 = /*#__PURE__*/_jsx(ChangedFilesRow, {
|
|
354
357
|
chatId: chatId,
|
|
355
358
|
turnId: row.turnId,
|
|
@@ -359,51 +362,51 @@ export function Row(t0) {
|
|
|
359
362
|
baseMoved: row.baseMoved,
|
|
360
363
|
heldBack: t1
|
|
361
364
|
});
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
365
|
+
$[60] = chatId;
|
|
366
|
+
$[61] = row.baseMoved;
|
|
367
|
+
$[62] = row.checkpoint;
|
|
368
|
+
$[63] = row.diff;
|
|
369
|
+
$[64] = row.tools;
|
|
370
|
+
$[65] = row.turnId;
|
|
371
|
+
$[66] = t1;
|
|
372
|
+
$[67] = t2;
|
|
370
373
|
} else {
|
|
371
|
-
t2 = $[
|
|
374
|
+
t2 = $[67];
|
|
372
375
|
}
|
|
373
376
|
return t2;
|
|
374
377
|
}
|
|
375
378
|
case "approval":
|
|
376
379
|
{
|
|
377
380
|
let t1;
|
|
378
|
-
if ($[
|
|
381
|
+
if ($[68] !== row.item) {
|
|
379
382
|
t1 = /*#__PURE__*/_jsx(ApprovalHistoryRow, {
|
|
380
383
|
item: row.item
|
|
381
384
|
});
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
385
|
+
$[68] = row.item;
|
|
386
|
+
$[69] = t1;
|
|
384
387
|
} else {
|
|
385
|
-
t1 = $[
|
|
388
|
+
t1 = $[69];
|
|
386
389
|
}
|
|
387
390
|
return t1;
|
|
388
391
|
}
|
|
389
392
|
case "question":
|
|
390
393
|
{
|
|
391
394
|
let t1;
|
|
392
|
-
if ($[
|
|
395
|
+
if ($[70] !== row.item) {
|
|
393
396
|
t1 = /*#__PURE__*/_jsx(QuestionHistoryRow, {
|
|
394
397
|
item: row.item
|
|
395
398
|
});
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
399
|
+
$[70] = row.item;
|
|
400
|
+
$[71] = t1;
|
|
398
401
|
} else {
|
|
399
|
-
t1 = $[
|
|
402
|
+
t1 = $[71];
|
|
400
403
|
}
|
|
401
404
|
return t1;
|
|
402
405
|
}
|
|
403
406
|
case "note":
|
|
404
407
|
{
|
|
405
408
|
let t1;
|
|
406
|
-
if ($[
|
|
409
|
+
if ($[72] !== row.from || $[73] !== row.id || $[74] !== row.level || $[75] !== row.said || $[76] !== row.text) {
|
|
407
410
|
t1 = /*#__PURE__*/_jsx(NoteRow, {
|
|
408
411
|
id: row.id,
|
|
409
412
|
level: row.level,
|
|
@@ -411,158 +414,172 @@ export function Row(t0) {
|
|
|
411
414
|
from: row.from,
|
|
412
415
|
said: row.said
|
|
413
416
|
});
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
417
|
+
$[72] = row.from;
|
|
418
|
+
$[73] = row.id;
|
|
419
|
+
$[74] = row.level;
|
|
420
|
+
$[75] = row.said;
|
|
421
|
+
$[76] = row.text;
|
|
422
|
+
$[77] = t1;
|
|
420
423
|
} else {
|
|
421
|
-
t1 = $[
|
|
424
|
+
t1 = $[77];
|
|
422
425
|
}
|
|
423
426
|
return t1;
|
|
424
427
|
}
|
|
425
428
|
case "message":
|
|
426
429
|
{
|
|
427
430
|
let t1;
|
|
428
|
-
if ($[
|
|
431
|
+
if ($[78] !== chatId || $[79] !== row.id || $[80] !== row.message) {
|
|
429
432
|
t1 = /*#__PURE__*/_jsx(SentMessageRow, {
|
|
430
433
|
chatId: chatId,
|
|
431
434
|
id: row.id,
|
|
432
435
|
message: row.message
|
|
433
436
|
});
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
437
|
+
$[78] = chatId;
|
|
438
|
+
$[79] = row.id;
|
|
439
|
+
$[80] = row.message;
|
|
440
|
+
$[81] = t1;
|
|
438
441
|
} else {
|
|
439
|
-
t1 = $[
|
|
442
|
+
t1 = $[81];
|
|
440
443
|
}
|
|
441
444
|
return t1;
|
|
442
445
|
}
|
|
443
446
|
case "sent":
|
|
444
447
|
{
|
|
445
448
|
let t1;
|
|
446
|
-
if ($[
|
|
449
|
+
if ($[82] !== chatId || $[83] !== row.id || $[84] !== row.sent || $[85] !== row.tool) {
|
|
447
450
|
t1 = /*#__PURE__*/_jsx(SentByAgentRow, {
|
|
448
451
|
chatId: chatId,
|
|
449
452
|
id: row.id,
|
|
450
453
|
tool: row.tool,
|
|
451
454
|
sent: row.sent
|
|
452
455
|
});
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
456
|
+
$[82] = chatId;
|
|
457
|
+
$[83] = row.id;
|
|
458
|
+
$[84] = row.sent;
|
|
459
|
+
$[85] = row.tool;
|
|
460
|
+
$[86] = t1;
|
|
458
461
|
} else {
|
|
459
|
-
t1 = $[
|
|
462
|
+
t1 = $[86];
|
|
460
463
|
}
|
|
461
464
|
return t1;
|
|
462
465
|
}
|
|
463
466
|
case "compaction":
|
|
464
467
|
{
|
|
465
468
|
let t1;
|
|
466
|
-
if ($[
|
|
469
|
+
if ($[87] !== row.postTokens || $[88] !== row.preTokens) {
|
|
467
470
|
t1 = /*#__PURE__*/_jsx(CompactionRow, {
|
|
468
471
|
preTokens: row.preTokens,
|
|
469
472
|
postTokens: row.postTokens
|
|
470
473
|
});
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
+
$[87] = row.postTokens;
|
|
475
|
+
$[88] = row.preTokens;
|
|
476
|
+
$[89] = t1;
|
|
477
|
+
} else {
|
|
478
|
+
t1 = $[89];
|
|
479
|
+
}
|
|
480
|
+
return t1;
|
|
481
|
+
}
|
|
482
|
+
case "secret":
|
|
483
|
+
{
|
|
484
|
+
let t1;
|
|
485
|
+
if ($[90] !== row.item) {
|
|
486
|
+
t1 = /*#__PURE__*/_jsx(SecretRow, {
|
|
487
|
+
item: row.item
|
|
488
|
+
});
|
|
489
|
+
$[90] = row.item;
|
|
490
|
+
$[91] = t1;
|
|
474
491
|
} else {
|
|
475
|
-
t1 = $[
|
|
492
|
+
t1 = $[91];
|
|
476
493
|
}
|
|
477
494
|
return t1;
|
|
478
495
|
}
|
|
479
496
|
case "unknown":
|
|
480
497
|
{
|
|
481
498
|
let t1;
|
|
482
|
-
if ($[
|
|
499
|
+
if ($[92] !== row.id || $[93] !== row.waits) {
|
|
483
500
|
t1 = /*#__PURE__*/_jsx(UnknownRow, {
|
|
484
501
|
id: row.id,
|
|
485
502
|
waits: row.waits
|
|
486
503
|
});
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
504
|
+
$[92] = row.id;
|
|
505
|
+
$[93] = row.waits;
|
|
506
|
+
$[94] = t1;
|
|
490
507
|
} else {
|
|
491
|
-
t1 = $[
|
|
508
|
+
t1 = $[94];
|
|
492
509
|
}
|
|
493
510
|
return t1;
|
|
494
511
|
}
|
|
495
512
|
case "selection-switch":
|
|
496
513
|
{
|
|
497
514
|
let t1;
|
|
498
|
-
if ($[
|
|
515
|
+
if ($[95] !== chatId || $[96] !== row.from || $[97] !== row.to) {
|
|
499
516
|
t1 = /*#__PURE__*/_jsx(SelectionSwitchRow, {
|
|
500
517
|
chatId: chatId,
|
|
501
518
|
from: row.from,
|
|
502
519
|
to: row.to
|
|
503
520
|
});
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
521
|
+
$[95] = chatId;
|
|
522
|
+
$[96] = row.from;
|
|
523
|
+
$[97] = row.to;
|
|
524
|
+
$[98] = t1;
|
|
508
525
|
} else {
|
|
509
|
-
t1 = $[
|
|
526
|
+
t1 = $[98];
|
|
510
527
|
}
|
|
511
528
|
return t1;
|
|
512
529
|
}
|
|
513
530
|
case "working":
|
|
514
531
|
{
|
|
515
532
|
let t1;
|
|
516
|
-
if ($[
|
|
533
|
+
if ($[99] !== row.tool) {
|
|
517
534
|
t1 = row.tool === undefined ? {} : {
|
|
518
535
|
tool: row.tool
|
|
519
536
|
};
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
537
|
+
$[99] = row.tool;
|
|
538
|
+
$[100] = t1;
|
|
522
539
|
} else {
|
|
523
|
-
t1 = $[
|
|
540
|
+
t1 = $[100];
|
|
524
541
|
}
|
|
525
542
|
let t2;
|
|
526
|
-
if ($[
|
|
543
|
+
if ($[101] !== row.startedAt || $[102] !== t1) {
|
|
527
544
|
t2 = /*#__PURE__*/_jsx(WorkingRow, {
|
|
528
545
|
startedAt: row.startedAt,
|
|
529
546
|
...t1
|
|
530
547
|
});
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
548
|
+
$[101] = row.startedAt;
|
|
549
|
+
$[102] = t1;
|
|
550
|
+
$[103] = t2;
|
|
534
551
|
} else {
|
|
535
|
-
t2 = $[
|
|
552
|
+
t2 = $[103];
|
|
536
553
|
}
|
|
537
554
|
return t2;
|
|
538
555
|
}
|
|
539
556
|
case "app-card":
|
|
540
557
|
{
|
|
541
558
|
let t1;
|
|
542
|
-
if ($[
|
|
559
|
+
if ($[104] !== row.card) {
|
|
543
560
|
t1 = /*#__PURE__*/_jsx(AppCardRow, {
|
|
544
561
|
card: row.card
|
|
545
562
|
});
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
563
|
+
$[104] = row.card;
|
|
564
|
+
$[105] = t1;
|
|
548
565
|
} else {
|
|
549
|
-
t1 = $[
|
|
566
|
+
t1 = $[105];
|
|
550
567
|
}
|
|
551
568
|
return t1;
|
|
552
569
|
}
|
|
553
570
|
case "visual":
|
|
554
571
|
{
|
|
555
572
|
let t1;
|
|
556
|
-
if ($[
|
|
573
|
+
if ($[106] !== chatId || $[107] !== row.visual) {
|
|
557
574
|
t1 = /*#__PURE__*/_jsx(VisualRow, {
|
|
558
575
|
chatId: chatId,
|
|
559
576
|
visual: row.visual
|
|
560
577
|
});
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
578
|
+
$[106] = chatId;
|
|
579
|
+
$[107] = row.visual;
|
|
580
|
+
$[108] = t1;
|
|
564
581
|
} else {
|
|
565
|
-
t1 = $[
|
|
582
|
+
t1 = $[108];
|
|
566
583
|
}
|
|
567
584
|
return t1;
|
|
568
585
|
}
|