@adecore/agents-react 0.69.1 → 0.70.0

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.
@@ -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(106);
73
+ const $ = _c(107);
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
- let t1;
103
+ const t1 = row.turn.wakeup === true;
104
+ let t2;
104
105
  if ($[3] !== openSubagent || $[4] !== toolUseId) {
105
- t1 = toolUseId ? () => openSubagent(toolUseId) : undefined;
106
+ t2 = toolUseId ? () => openSubagent(toolUseId) : undefined;
106
107
  $[3] = openSubagent;
107
108
  $[4] = toolUseId;
108
- $[5] = t1;
109
+ $[5] = t2;
109
110
  } else {
110
- t1 = $[5];
111
+ t2 = $[5];
111
112
  }
112
- let t2;
113
- if ($[6] !== row.label || $[7] !== t1) {
114
- t2 = /*#__PURE__*/_jsx(AgentTurnRow, {
113
+ let t3;
114
+ if ($[6] !== row.label || $[7] !== t1 || $[8] !== t2) {
115
+ t3 = /*#__PURE__*/_jsx(AgentTurnRow, {
115
116
  label: row.label,
116
- onOpen: t1
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
- t2 = $[8];
125
+ t3 = $[9];
123
126
  }
124
- return t2;
127
+ return t3;
125
128
  }
126
129
  case "assistant":
127
130
  {
128
131
  let t1;
129
- if ($[9] !== chatId || $[10] !== row.item) {
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
- $[9] = chatId;
135
- $[10] = row.item;
136
- $[11] = t1;
137
+ $[10] = chatId;
138
+ $[11] = row.item;
139
+ $[12] = t1;
137
140
  } else {
138
- t1 = $[11];
141
+ t1 = $[12];
139
142
  }
140
143
  return t1;
141
144
  }
142
145
  case "report":
143
146
  {
144
147
  let t1;
145
- if ($[12] !== row.id || $[13] !== row.text) {
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
- $[12] = row.id;
151
- $[13] = row.text;
152
- $[14] = t1;
153
+ $[13] = row.id;
154
+ $[14] = row.text;
155
+ $[15] = t1;
153
156
  } else {
154
- t1 = $[14];
157
+ t1 = $[15];
155
158
  }
156
159
  return t1;
157
160
  }
158
161
  case "thinking":
159
162
  {
160
163
  let t1;
161
- if ($[15] !== chatId || $[16] !== row.item) {
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
- $[15] = chatId;
167
- $[16] = row.item;
168
- $[17] = t1;
169
+ $[16] = chatId;
170
+ $[17] = row.item;
171
+ $[18] = t1;
169
172
  } else {
170
- t1 = $[17];
173
+ t1 = $[18];
171
174
  }
172
175
  return t1;
173
176
  }
174
177
  case "live-thought":
175
178
  {
176
179
  let t1;
177
- if ($[18] !== chatId || $[19] !== row.item) {
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
- $[18] = chatId;
183
- $[19] = row.item;
184
- $[20] = t1;
185
+ $[19] = chatId;
186
+ $[20] = row.item;
187
+ $[21] = t1;
185
188
  } else {
186
- t1 = $[20];
189
+ t1 = $[21];
187
190
  }
188
191
  return t1;
189
192
  }
190
193
  case "work":
191
194
  {
192
195
  let t1;
193
- if ($[21] !== chatId || $[22] !== row.tool) {
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
- $[21] = chatId;
202
- $[22] = row.tool;
203
- $[23] = t1;
204
+ $[22] = chatId;
205
+ $[23] = row.tool;
206
+ $[24] = t1;
204
207
  } else {
205
- t1 = $[23];
208
+ t1 = $[24];
206
209
  }
207
210
  return t1;
208
211
  }
209
212
  case "work-live":
210
213
  {
211
214
  let t1;
212
- if ($[24] !== chatId || $[25] !== row.tool) {
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
- $[24] = chatId;
221
- $[25] = row.tool;
222
- $[26] = t1;
223
+ $[25] = chatId;
224
+ $[26] = row.tool;
225
+ $[27] = t1;
223
226
  } else {
224
- t1 = $[26];
227
+ t1 = $[27];
225
228
  }
226
229
  return t1;
227
230
  }
228
231
  case "workflow":
229
232
  {
230
233
  let t1;
231
- if ($[27] !== chatId || $[28] !== openConversation || $[29] !== row.tool || $[30] !== row.workflow) {
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
- $[27] = chatId;
239
- $[28] = openConversation;
240
- $[29] = row.tool;
241
- $[30] = row.workflow;
242
- $[31] = t1;
241
+ $[28] = chatId;
242
+ $[29] = openConversation;
243
+ $[30] = row.tool;
244
+ $[31] = row.workflow;
245
+ $[32] = t1;
243
246
  } else {
244
- t1 = $[31];
247
+ t1 = $[32];
245
248
  }
246
249
  return t1;
247
250
  }
248
251
  case "work-group":
249
252
  {
250
253
  let t1;
251
- if ($[32] !== row.id || $[33] !== toggleGroup) {
254
+ if ($[33] !== row.id || $[34] !== toggleGroup) {
252
255
  t1 = () => toggleGroup(row.id);
253
- $[32] = row.id;
254
- $[33] = toggleGroup;
255
- $[34] = t1;
256
+ $[33] = row.id;
257
+ $[34] = toggleGroup;
258
+ $[35] = t1;
256
259
  } else {
257
- t1 = $[34];
260
+ t1 = $[35];
258
261
  }
259
262
  let t2;
260
- if ($[35] !== row.expanded || $[36] !== row.look || $[37] !== row.summary || $[38] !== row.tools || $[39] !== t1) {
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
- $[35] = row.expanded;
269
- $[36] = row.look;
270
- $[37] = row.summary;
271
- $[38] = row.tools;
272
- $[39] = t1;
273
- $[40] = t2;
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 = $[40];
278
+ t2 = $[41];
276
279
  }
277
280
  return t2;
278
281
  }
279
282
  case "subagent":
280
283
  {
281
284
  let t1;
282
- if ($[41] !== chatId || $[42] !== openConversation || $[43] !== row || $[44] !== toggleSubagent) {
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
- $[41] = chatId;
290
- $[42] = openConversation;
291
- $[43] = row;
292
- $[44] = toggleSubagent;
293
- $[45] = t1;
292
+ $[42] = chatId;
293
+ $[43] = openConversation;
294
+ $[44] = row;
295
+ $[45] = toggleSubagent;
296
+ $[46] = t1;
294
297
  } else {
295
- t1 = $[45];
298
+ t1 = $[46];
296
299
  }
297
300
  return t1;
298
301
  }
299
302
  case "turn-fold":
300
303
  {
301
304
  let t1;
302
- if ($[46] !== row.turn.id || $[47] !== toggleTurn) {
305
+ if ($[47] !== row.turn.id || $[48] !== toggleTurn) {
303
306
  t1 = () => toggleTurn(row.turn.id);
304
- $[46] = row.turn.id;
305
- $[47] = toggleTurn;
306
- $[48] = t1;
307
+ $[47] = row.turn.id;
308
+ $[48] = toggleTurn;
309
+ $[49] = t1;
307
310
  } else {
308
- t1 = $[48];
311
+ t1 = $[49];
309
312
  }
310
313
  let t2;
311
- if ($[49] !== row.expandable || $[50] !== row.expanded || $[51] !== row.label || $[52] !== row.turn || $[53] !== row.work || $[54] !== t1) {
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
- $[49] = row.expandable;
321
- $[50] = row.expanded;
322
- $[51] = row.label;
323
- $[52] = row.turn;
324
- $[53] = row.work;
325
- $[54] = t1;
326
- $[55] = t2;
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 = $[55];
331
+ t2 = $[56];
329
332
  }
330
333
  return t2;
331
334
  }
332
335
  case "forks":
333
336
  {
334
337
  let t1;
335
- if ($[56] !== chatId || $[57] !== row.turnId) {
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
- $[56] = chatId;
341
- $[57] = row.turnId;
342
- $[58] = t1;
343
+ $[57] = chatId;
344
+ $[58] = row.turnId;
345
+ $[59] = t1;
343
346
  } else {
344
- t1 = $[58];
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 ($[59] !== chatId || $[60] !== row.baseMoved || $[61] !== row.checkpoint || $[62] !== row.diff || $[63] !== row.tools || $[64] !== row.turnId || $[65] !== t1) {
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
- $[59] = chatId;
363
- $[60] = row.baseMoved;
364
- $[61] = row.checkpoint;
365
- $[62] = row.diff;
366
- $[63] = row.tools;
367
- $[64] = row.turnId;
368
- $[65] = t1;
369
- $[66] = t2;
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 = $[66];
374
+ t2 = $[67];
372
375
  }
373
376
  return t2;
374
377
  }
375
378
  case "approval":
376
379
  {
377
380
  let t1;
378
- if ($[67] !== row.item) {
381
+ if ($[68] !== row.item) {
379
382
  t1 = /*#__PURE__*/_jsx(ApprovalHistoryRow, {
380
383
  item: row.item
381
384
  });
382
- $[67] = row.item;
383
- $[68] = t1;
385
+ $[68] = row.item;
386
+ $[69] = t1;
384
387
  } else {
385
- t1 = $[68];
388
+ t1 = $[69];
386
389
  }
387
390
  return t1;
388
391
  }
389
392
  case "question":
390
393
  {
391
394
  let t1;
392
- if ($[69] !== row.item) {
395
+ if ($[70] !== row.item) {
393
396
  t1 = /*#__PURE__*/_jsx(QuestionHistoryRow, {
394
397
  item: row.item
395
398
  });
396
- $[69] = row.item;
397
- $[70] = t1;
399
+ $[70] = row.item;
400
+ $[71] = t1;
398
401
  } else {
399
- t1 = $[70];
402
+ t1 = $[71];
400
403
  }
401
404
  return t1;
402
405
  }
403
406
  case "note":
404
407
  {
405
408
  let t1;
406
- if ($[71] !== row.from || $[72] !== row.id || $[73] !== row.level || $[74] !== row.said || $[75] !== row.text) {
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,158 @@ export function Row(t0) {
411
414
  from: row.from,
412
415
  said: row.said
413
416
  });
414
- $[71] = row.from;
415
- $[72] = row.id;
416
- $[73] = row.level;
417
- $[74] = row.said;
418
- $[75] = row.text;
419
- $[76] = t1;
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 = $[76];
424
+ t1 = $[77];
422
425
  }
423
426
  return t1;
424
427
  }
425
428
  case "message":
426
429
  {
427
430
  let t1;
428
- if ($[77] !== chatId || $[78] !== row.id || $[79] !== row.message) {
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
- $[77] = chatId;
435
- $[78] = row.id;
436
- $[79] = row.message;
437
- $[80] = t1;
437
+ $[78] = chatId;
438
+ $[79] = row.id;
439
+ $[80] = row.message;
440
+ $[81] = t1;
438
441
  } else {
439
- t1 = $[80];
442
+ t1 = $[81];
440
443
  }
441
444
  return t1;
442
445
  }
443
446
  case "sent":
444
447
  {
445
448
  let t1;
446
- if ($[81] !== chatId || $[82] !== row.id || $[83] !== row.sent || $[84] !== row.tool) {
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
- $[81] = chatId;
454
- $[82] = row.id;
455
- $[83] = row.sent;
456
- $[84] = row.tool;
457
- $[85] = t1;
456
+ $[82] = chatId;
457
+ $[83] = row.id;
458
+ $[84] = row.sent;
459
+ $[85] = row.tool;
460
+ $[86] = t1;
458
461
  } else {
459
- t1 = $[85];
462
+ t1 = $[86];
460
463
  }
461
464
  return t1;
462
465
  }
463
466
  case "compaction":
464
467
  {
465
468
  let t1;
466
- if ($[86] !== row.postTokens || $[87] !== row.preTokens) {
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
- $[86] = row.postTokens;
472
- $[87] = row.preTokens;
473
- $[88] = t1;
474
+ $[87] = row.postTokens;
475
+ $[88] = row.preTokens;
476
+ $[89] = t1;
474
477
  } else {
475
- t1 = $[88];
478
+ t1 = $[89];
476
479
  }
477
480
  return t1;
478
481
  }
479
482
  case "unknown":
480
483
  {
481
484
  let t1;
482
- if ($[89] !== row.id || $[90] !== row.waits) {
485
+ if ($[90] !== row.id || $[91] !== row.waits) {
483
486
  t1 = /*#__PURE__*/_jsx(UnknownRow, {
484
487
  id: row.id,
485
488
  waits: row.waits
486
489
  });
487
- $[89] = row.id;
488
- $[90] = row.waits;
489
- $[91] = t1;
490
+ $[90] = row.id;
491
+ $[91] = row.waits;
492
+ $[92] = t1;
490
493
  } else {
491
- t1 = $[91];
494
+ t1 = $[92];
492
495
  }
493
496
  return t1;
494
497
  }
495
498
  case "selection-switch":
496
499
  {
497
500
  let t1;
498
- if ($[92] !== chatId || $[93] !== row.from || $[94] !== row.to) {
501
+ if ($[93] !== chatId || $[94] !== row.from || $[95] !== row.to) {
499
502
  t1 = /*#__PURE__*/_jsx(SelectionSwitchRow, {
500
503
  chatId: chatId,
501
504
  from: row.from,
502
505
  to: row.to
503
506
  });
504
- $[92] = chatId;
505
- $[93] = row.from;
506
- $[94] = row.to;
507
- $[95] = t1;
507
+ $[93] = chatId;
508
+ $[94] = row.from;
509
+ $[95] = row.to;
510
+ $[96] = t1;
508
511
  } else {
509
- t1 = $[95];
512
+ t1 = $[96];
510
513
  }
511
514
  return t1;
512
515
  }
513
516
  case "working":
514
517
  {
515
518
  let t1;
516
- if ($[96] !== row.tool) {
519
+ if ($[97] !== row.tool) {
517
520
  t1 = row.tool === undefined ? {} : {
518
521
  tool: row.tool
519
522
  };
520
- $[96] = row.tool;
521
- $[97] = t1;
523
+ $[97] = row.tool;
524
+ $[98] = t1;
522
525
  } else {
523
- t1 = $[97];
526
+ t1 = $[98];
524
527
  }
525
528
  let t2;
526
- if ($[98] !== row.startedAt || $[99] !== t1) {
529
+ if ($[99] !== row.startedAt || $[100] !== t1) {
527
530
  t2 = /*#__PURE__*/_jsx(WorkingRow, {
528
531
  startedAt: row.startedAt,
529
532
  ...t1
530
533
  });
531
- $[98] = row.startedAt;
532
- $[99] = t1;
533
- $[100] = t2;
534
+ $[99] = row.startedAt;
535
+ $[100] = t1;
536
+ $[101] = t2;
534
537
  } else {
535
- t2 = $[100];
538
+ t2 = $[101];
536
539
  }
537
540
  return t2;
538
541
  }
539
542
  case "app-card":
540
543
  {
541
544
  let t1;
542
- if ($[101] !== row.card) {
545
+ if ($[102] !== row.card) {
543
546
  t1 = /*#__PURE__*/_jsx(AppCardRow, {
544
547
  card: row.card
545
548
  });
546
- $[101] = row.card;
547
- $[102] = t1;
549
+ $[102] = row.card;
550
+ $[103] = t1;
548
551
  } else {
549
- t1 = $[102];
552
+ t1 = $[103];
550
553
  }
551
554
  return t1;
552
555
  }
553
556
  case "visual":
554
557
  {
555
558
  let t1;
556
- if ($[103] !== chatId || $[104] !== row.visual) {
559
+ if ($[104] !== chatId || $[105] !== row.visual) {
557
560
  t1 = /*#__PURE__*/_jsx(VisualRow, {
558
561
  chatId: chatId,
559
562
  visual: row.visual
560
563
  });
561
- $[103] = chatId;
562
- $[104] = row.visual;
563
- $[105] = t1;
564
+ $[104] = chatId;
565
+ $[105] = row.visual;
566
+ $[106] = t1;
564
567
  } else {
565
- t1 = $[105];
568
+ t1 = $[106];
566
569
  }
567
570
  return t1;
568
571
  }