@adecore/agents-react 0.49.3 → 0.49.5

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 (52) hide show
  1. package/dist/chat/chat-references.d.ts +13 -1
  2. package/dist/chat/chat-references.js +13 -2
  3. package/dist/chat/ui/ReferenceChip.js +98 -77
  4. package/dist/chat/ui/ReferenceTrail.d.ts +11 -0
  5. package/dist/chat/ui/ReferenceTrail.js +65 -0
  6. package/dist/chat/ui/RunSettings.js +2 -2
  7. package/dist/chat/ui/SessionLine.js +1 -1
  8. package/dist/chat/ui/chips.d.ts +1 -0
  9. package/dist/chat/ui/chips.js +2 -0
  10. package/dist/chat/ui/composer/ComposerMenu.js +28 -22
  11. package/dist/chat/ui/composer/chips.d.ts +3 -2
  12. package/dist/chat/ui/composer/chips.js +21 -9
  13. package/dist/chat/ui/composer/use-prompt-menus.d.ts +1 -0
  14. package/dist/chat/ui/composer/use-prompt-menus.js +115 -121
  15. package/dist/chat/ui/reference-icons.js +3 -1
  16. package/dist/chat/ui/rows/MessageRows.js +21 -8
  17. package/dist/locales/en/agent-chat.d.ts +3 -0
  18. package/dist/locales/en/agent-chat.js +4 -1
  19. package/dist/locales/en/agent-usage.d.ts +0 -1
  20. package/dist/locales/en/agent-usage.js +0 -1
  21. package/dist/locales/nl/agent-chat.d.ts +3 -0
  22. package/dist/locales/nl/agent-chat.js +4 -1
  23. package/dist/locales/nl/agent-usage.d.ts +0 -1
  24. package/dist/locales/nl/agent-usage.js +0 -1
  25. package/dist/usage/LimitsList.d.ts +5 -2
  26. package/dist/usage/LimitsList.js +649 -231
  27. package/dist/usage/UsageBreakdown.js +1 -1
  28. package/dist/usage/UsageLimits.js +1 -1
  29. package/dist/usage/UsageLimitsCard.js +81 -54
  30. package/dist/usage/limit-groups.d.ts +4 -3
  31. package/dist/usage/limit-groups.js +21 -11
  32. package/package.json +8 -8
  33. package/src/chat/chat-references.ts +53 -4
  34. package/src/chat/ui/ReferenceChip.tsx +8 -2
  35. package/src/chat/ui/ReferenceTrail.tsx +29 -0
  36. package/src/chat/ui/RunSettings.tsx +2 -2
  37. package/src/chat/ui/SessionLine.tsx +1 -1
  38. package/src/chat/ui/chips.ts +3 -0
  39. package/src/chat/ui/composer/ComposerMenu.tsx +30 -11
  40. package/src/chat/ui/composer/chips.ts +29 -11
  41. package/src/chat/ui/composer/use-prompt-menus.ts +12 -7
  42. package/src/chat/ui/reference-icons.ts +18 -1
  43. package/src/chat/ui/rows/MessageRows.tsx +1 -0
  44. package/src/locales/en/agent-chat.ts +4 -1
  45. package/src/locales/en/agent-usage.ts +0 -1
  46. package/src/locales/nl/agent-chat.ts +4 -1
  47. package/src/locales/nl/agent-usage.ts +0 -1
  48. package/src/usage/LimitsList.tsx +183 -54
  49. package/src/usage/UsageBreakdown.tsx +1 -1
  50. package/src/usage/UsageLimits.tsx +1 -1
  51. package/src/usage/UsageLimitsCard.tsx +11 -7
  52. package/src/usage/limit-groups.ts +25 -8
@@ -6,13 +6,13 @@ import { useChatHost } from '../../../host.js';
6
6
  import { useChatScope } from '../../../scope.js';
7
7
  import { referenceSuggestions, referenceTokens } from '../../chat-references.js';
8
8
  import { usableSlashCommands } from '../../guards.js';
9
- import { chipRanges, findMentionQuery, findReferenceQuery, findSkillQuery, insertMention, insertReference, insertSkill, mentionPick, NO_MENTION_SEARCH, queryOutsideChips } from '../../mentions.js';
9
+ import { chipRanges, findMentionQuery, findReferenceQuery, findSkillQuery, insertMention, insertReference, insertSkill, mentionPick, NO_MENTION_SEARCH, presentReferences, queryOutsideChips } from '../../mentions.js';
10
10
  import { inCode } from './keys.js';
11
11
  import { clampMenuIndex, composerMenuAria } from './menu-aria.js';
12
12
  const SEARCH_DEBOUNCE_MS = 80;
13
13
  // What fits above the box without turning the picker into a file tree.
14
14
  const MENTION_RESULTS = 8;
15
- const REFERENCE_RESULTS = 8;
15
+ const REFERENCE_RESULTS = 20;
16
16
  const NO_COMMANDS = [];
17
17
  function sameQuery(left, right) {
18
18
  return left?.start === right?.start && left?.query === right?.query;
@@ -23,7 +23,7 @@ function sameQuery(left, right) {
23
23
  * follow that one.
24
24
  */
25
25
  export function usePromptMenus(t0) {
26
- const $ = _c(102);
26
+ const $ = _c(97);
27
27
  const {
28
28
  draft: t1,
29
29
  inputRef,
@@ -174,31 +174,25 @@ export function usePromptMenus(t0) {
174
174
  }
175
175
  const offersReferences = referables.items.some(t6);
176
176
  const referenceMenuOpen = !commandMenuOpen && !skillMenuOpen && !mentionMenuOpen && referenceQuery !== null && offersReferences;
177
- const excluded = ownId === undefined ? [...draft.chats, ...draft.references] : [ownId, ...draft.chats, ...draft.references];
178
- const referenceMatches = referenceMenuOpen ? referenceSuggestions(referables, referenceQuery.query, excluded, REFERENCE_RESULTS) : [];
179
177
  let t7;
180
- if ($[24] !== draft.chats || $[25] !== draft.referenceNames || $[26] !== draft.references || $[27] !== referables.items) {
181
- let t8;
182
- if ($[29] !== referables.items) {
183
- t8 = token => ({
178
+ if ($[24] !== referables.items) {
179
+ t7 = token => {
180
+ const item_0 = referables.items.find(candidate => candidate.id === token.id);
181
+ return {
184
182
  ...token,
185
- kind: referables.items.find(item_0 => item_0.id === token.id)?.kind ?? null
186
- });
187
- $[29] = referables.items;
188
- $[30] = t8;
189
- } else {
190
- t8 = $[30];
191
- }
192
- t7 = referenceTokens([...draft.chats, ...draft.references], referables.items, draft.referenceNames).map(t8);
193
- $[24] = draft.chats;
194
- $[25] = draft.referenceNames;
195
- $[26] = draft.references;
196
- $[27] = referables.items;
197
- $[28] = t7;
183
+ kind: item_0?.kind ?? null,
184
+ trail: item_0?.trail
185
+ };
186
+ };
187
+ $[24] = referables.items;
188
+ $[25] = t7;
198
189
  } else {
199
- t7 = $[28];
190
+ t7 = $[25];
200
191
  }
201
- const referenceChips = t7;
192
+ const referenceChips = referenceTokens([...draft.chats, ...draft.references], referables.items, draft.referenceNames).map(t7);
193
+ const picked = presentReferences(text, [...draft.chats, ...draft.references], referenceChips);
194
+ const excluded = ownId === undefined ? picked : [ownId, ...picked];
195
+ const referenceMatches = referenceMenuOpen ? referenceSuggestions(referables, referenceQuery.query, excluded, REFERENCE_RESULTS) : [];
202
196
  const listId = useId();
203
197
  const menuOpen = commandMenuOpen || skillMenuOpen || mentionMenuOpen || referenceMenuOpen;
204
198
  const menuCount = commandMenuOpen ? commands.length : skillMenuOpen ? skillMatches.length : mentionMenuOpen ? mentionCount : referenceMatches.length;
@@ -211,7 +205,7 @@ export function usePromptMenus(t0) {
211
205
  count: menuCount
212
206
  });
213
207
  let t8;
214
- if ($[31] !== cwd || $[32] !== draft.mentions || $[33] !== draft.skills || $[34] !== referenceChips) {
208
+ if ($[26] !== cwd || $[27] !== draft.mentions || $[28] !== draft.skills || $[29] !== referenceChips) {
215
209
  t8 = (value, selection, state) => {
216
210
  const empty = selection.from === selection.to;
217
211
  const tree = empty ? ensureSyntaxTree(state, selection.from, 50) ?? syntaxTree(state) : null;
@@ -224,40 +218,40 @@ export function usePromptMenus(t0) {
224
218
  const reference = caret === null ? null : queryOutsideChips(findReferenceQuery(value, caret), chips);
225
219
  setReferenceQuery(current_1 => sameQuery(current_1, reference) ? current_1 : reference);
226
220
  };
227
- $[31] = cwd;
228
- $[32] = draft.mentions;
229
- $[33] = draft.skills;
230
- $[34] = referenceChips;
231
- $[35] = t8;
221
+ $[26] = cwd;
222
+ $[27] = draft.mentions;
223
+ $[28] = draft.skills;
224
+ $[29] = referenceChips;
225
+ $[30] = t8;
232
226
  } else {
233
- t8 = $[35];
227
+ t8 = $[30];
234
228
  }
235
229
  const trackTriggers = t8;
236
230
  let t9;
237
- if ($[36] !== inputRef) {
231
+ if ($[31] !== inputRef) {
238
232
  t9 = caret_0 => {
239
233
  requestAnimationFrame(() => inputRef.current?.setCaret(caret_0));
240
234
  };
241
- $[36] = inputRef;
242
- $[37] = t9;
235
+ $[31] = inputRef;
236
+ $[32] = t9;
243
237
  } else {
244
- t9 = $[37];
238
+ t9 = $[32];
245
239
  }
246
240
  const moveCaret = t9;
247
241
  let t10;
248
- if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
242
+ if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
249
243
  t10 = () => {
250
244
  setMention(null);
251
245
  setSkillQuery(null);
252
246
  setReferenceQuery(null);
253
247
  };
254
- $[38] = t10;
248
+ $[33] = t10;
255
249
  } else {
256
- t10 = $[38];
250
+ t10 = $[33];
257
251
  }
258
252
  const close = t10;
259
253
  let t11;
260
- if ($[39] !== draft.mentions || $[40] !== mention || $[41] !== moveCaret || $[42] !== setText || $[43] !== text) {
254
+ if ($[34] !== draft.mentions || $[35] !== mention || $[36] !== moveCaret || $[37] !== setText || $[38] !== text) {
261
255
  t11 = path => {
262
256
  if (!mention) {
263
257
  return;
@@ -267,34 +261,34 @@ export function usePromptMenus(t0) {
267
261
  setMention(null);
268
262
  moveCaret(result.caret);
269
263
  };
270
- $[39] = draft.mentions;
271
- $[40] = mention;
272
- $[41] = moveCaret;
273
- $[42] = setText;
274
- $[43] = text;
275
- $[44] = t11;
264
+ $[34] = draft.mentions;
265
+ $[35] = mention;
266
+ $[36] = moveCaret;
267
+ $[37] = setText;
268
+ $[38] = text;
269
+ $[39] = t11;
276
270
  } else {
277
- t11 = $[44];
271
+ t11 = $[39];
278
272
  }
279
273
  const chooseMention = t11;
280
274
  let t12;
281
- if ($[45] !== chooseMention || $[46] !== mention || $[47] !== searched) {
275
+ if ($[40] !== chooseMention || $[41] !== mention || $[42] !== searched) {
282
276
  t12 = index => {
283
277
  const path_0 = mention === null ? null : mentionPick(index, searched, mention.query);
284
278
  if (path_0 !== null) {
285
279
  chooseMention(path_0);
286
280
  }
287
281
  };
288
- $[45] = chooseMention;
289
- $[46] = mention;
290
- $[47] = searched;
291
- $[48] = t12;
282
+ $[40] = chooseMention;
283
+ $[41] = mention;
284
+ $[42] = searched;
285
+ $[43] = t12;
292
286
  } else {
293
- t12 = $[48];
287
+ t12 = $[43];
294
288
  }
295
289
  const chooseMentionAt = t12;
296
290
  let t13;
297
- if ($[49] !== moveCaret || $[50] !== referenceQuery || $[51] !== setDraft || $[52] !== text) {
291
+ if ($[44] !== moveCaret || $[45] !== referenceQuery || $[46] !== setDraft || $[47] !== text) {
298
292
  t13 = item_1 => {
299
293
  if (!referenceQuery) {
300
294
  return;
@@ -315,32 +309,32 @@ export function usePromptMenus(t0) {
315
309
  setReferenceQuery(null);
316
310
  moveCaret(result_0.caret);
317
311
  };
318
- $[49] = moveCaret;
319
- $[50] = referenceQuery;
320
- $[51] = setDraft;
321
- $[52] = text;
322
- $[53] = t13;
312
+ $[44] = moveCaret;
313
+ $[45] = referenceQuery;
314
+ $[46] = setDraft;
315
+ $[47] = text;
316
+ $[48] = t13;
323
317
  } else {
324
- t13 = $[53];
318
+ t13 = $[48];
325
319
  }
326
320
  const chooseReference = t13;
327
321
  let t14;
328
- if ($[54] !== chooseReference || $[55] !== referenceMatches) {
322
+ if ($[49] !== chooseReference || $[50] !== referenceMatches) {
329
323
  t14 = index_0 => {
330
324
  const item_2 = referenceMatches[index_0] ?? referenceMatches[0];
331
325
  if (item_2 !== undefined) {
332
326
  chooseReference(item_2);
333
327
  }
334
328
  };
335
- $[54] = chooseReference;
336
- $[55] = referenceMatches;
337
- $[56] = t14;
329
+ $[49] = chooseReference;
330
+ $[50] = referenceMatches;
331
+ $[51] = t14;
338
332
  } else {
339
- t14 = $[56];
333
+ t14 = $[51];
340
334
  }
341
335
  const chooseReferenceAt = t14;
342
336
  let t15;
343
- if ($[57] !== draft.mentions || $[58] !== draft.skills || $[59] !== moveCaret || $[60] !== setText || $[61] !== skillQuery || $[62] !== text) {
337
+ if ($[52] !== draft.mentions || $[53] !== draft.skills || $[54] !== moveCaret || $[55] !== setText || $[56] !== skillQuery || $[57] !== text) {
344
338
  t15 = name_2 => {
345
339
  const result_1 = skillQuery ? insertSkill(text, skillQuery, name_2) : {
346
340
  text: `$${name_2} `,
@@ -350,19 +344,19 @@ export function usePromptMenus(t0) {
350
344
  setSkillQuery(null);
351
345
  moveCaret(result_1.caret);
352
346
  };
353
- $[57] = draft.mentions;
354
- $[58] = draft.skills;
355
- $[59] = moveCaret;
356
- $[60] = setText;
357
- $[61] = skillQuery;
358
- $[62] = text;
359
- $[63] = t15;
347
+ $[52] = draft.mentions;
348
+ $[53] = draft.skills;
349
+ $[54] = moveCaret;
350
+ $[55] = setText;
351
+ $[56] = skillQuery;
352
+ $[57] = text;
353
+ $[58] = t15;
360
354
  } else {
361
- t15 = $[63];
355
+ t15 = $[58];
362
356
  }
363
357
  const chooseSkill = t15;
364
358
  let t16;
365
- if ($[64] !== chooseSkill || $[65] !== inputRef || $[66] !== setText) {
359
+ if ($[59] !== chooseSkill || $[60] !== inputRef || $[61] !== setText) {
366
360
  t16 = (command_0, index_1) => {
367
361
  setMenuIndex(index_1);
368
362
  if (command_0.skill) {
@@ -372,16 +366,16 @@ export function usePromptMenus(t0) {
372
366
  setText(`/${command_0.name}`);
373
367
  inputRef.current?.focus();
374
368
  };
375
- $[64] = chooseSkill;
376
- $[65] = inputRef;
377
- $[66] = setText;
378
- $[67] = t16;
369
+ $[59] = chooseSkill;
370
+ $[60] = inputRef;
371
+ $[61] = setText;
372
+ $[62] = t16;
379
373
  } else {
380
- t16 = $[67];
374
+ t16 = $[62];
381
375
  }
382
376
  const pickCommand = t16;
383
377
  let t17;
384
- if ($[68] !== chooseSkill || $[69] !== setText) {
378
+ if ($[63] !== chooseSkill || $[64] !== setText) {
385
379
  t17 = command_1 => {
386
380
  if (command_1.skill) {
387
381
  chooseSkill(command_1.name);
@@ -389,15 +383,15 @@ export function usePromptMenus(t0) {
389
383
  }
390
384
  setText(`/${command_1.name} `);
391
385
  };
392
- $[68] = chooseSkill;
393
- $[69] = setText;
394
- $[70] = t17;
386
+ $[63] = chooseSkill;
387
+ $[64] = setText;
388
+ $[65] = t17;
395
389
  } else {
396
- t17 = $[70];
390
+ t17 = $[65];
397
391
  }
398
392
  const completeCommand = t17;
399
393
  let t18;
400
- if ($[71] === Symbol.for("react.memo_cache_sentinel")) {
394
+ if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
401
395
  t18 = (key, count) => {
402
396
  if (key === "ArrowDown") {
403
397
  setMenuIndex(i => (i + 1) % count);
@@ -409,22 +403,22 @@ export function usePromptMenus(t0) {
409
403
  }
410
404
  return false;
411
405
  };
412
- $[71] = t18;
406
+ $[66] = t18;
413
407
  } else {
414
- t18 = $[71];
408
+ t18 = $[66];
415
409
  }
416
410
  const moveInMenu = t18;
417
411
  const t19 = skills.length > 0;
418
412
  let t20;
419
- if ($[72] !== skills) {
413
+ if ($[67] !== skills) {
420
414
  t20 = skills.map(_temp3);
421
- $[72] = skills;
422
- $[73] = t20;
415
+ $[67] = skills;
416
+ $[68] = t20;
423
417
  } else {
424
- t20 = $[73];
418
+ t20 = $[68];
425
419
  }
426
420
  let t21;
427
- if ($[74] !== activeIndex || $[75] !== chooseMention || $[76] !== chooseMentionAt || $[77] !== chooseReference || $[78] !== chooseReferenceAt || $[79] !== chooseSkill || $[80] !== commandMenuOpen || $[81] !== commandQuery || $[82] !== commands || $[83] !== completeCommand || $[84] !== files_0 || $[85] !== inputAria || $[86] !== listId || $[87] !== mention || $[88] !== mentionCount || $[89] !== mentionMenuOpen || $[90] !== menuOpen || $[91] !== pickCommand || $[92] !== referables || $[93] !== referenceChips || $[94] !== referenceMatches || $[95] !== referenceMenuOpen || $[96] !== skillMatches || $[97] !== skillMenuOpen || $[98] !== t19 || $[99] !== t20 || $[100] !== trackTriggers) {
421
+ if ($[69] !== activeIndex || $[70] !== chooseMention || $[71] !== chooseMentionAt || $[72] !== chooseReference || $[73] !== chooseReferenceAt || $[74] !== chooseSkill || $[75] !== commandMenuOpen || $[76] !== commandQuery || $[77] !== commands || $[78] !== completeCommand || $[79] !== files_0 || $[80] !== inputAria || $[81] !== listId || $[82] !== mention || $[83] !== mentionCount || $[84] !== mentionMenuOpen || $[85] !== menuOpen || $[86] !== pickCommand || $[87] !== referables || $[88] !== referenceChips || $[89] !== referenceMatches || $[90] !== referenceMenuOpen || $[91] !== skillMatches || $[92] !== skillMenuOpen || $[93] !== t19 || $[94] !== t20 || $[95] !== trackTriggers) {
428
422
  t21 = {
429
423
  listId,
430
424
  activeIndex,
@@ -457,36 +451,36 @@ export function usePromptMenus(t0) {
457
451
  completeCommand,
458
452
  moveInMenu
459
453
  };
460
- $[74] = activeIndex;
461
- $[75] = chooseMention;
462
- $[76] = chooseMentionAt;
463
- $[77] = chooseReference;
464
- $[78] = chooseReferenceAt;
465
- $[79] = chooseSkill;
466
- $[80] = commandMenuOpen;
467
- $[81] = commandQuery;
468
- $[82] = commands;
469
- $[83] = completeCommand;
470
- $[84] = files_0;
471
- $[85] = inputAria;
472
- $[86] = listId;
473
- $[87] = mention;
474
- $[88] = mentionCount;
475
- $[89] = mentionMenuOpen;
476
- $[90] = menuOpen;
477
- $[91] = pickCommand;
478
- $[92] = referables;
479
- $[93] = referenceChips;
480
- $[94] = referenceMatches;
481
- $[95] = referenceMenuOpen;
482
- $[96] = skillMatches;
483
- $[97] = skillMenuOpen;
484
- $[98] = t19;
485
- $[99] = t20;
486
- $[100] = trackTriggers;
487
- $[101] = t21;
454
+ $[69] = activeIndex;
455
+ $[70] = chooseMention;
456
+ $[71] = chooseMentionAt;
457
+ $[72] = chooseReference;
458
+ $[73] = chooseReferenceAt;
459
+ $[74] = chooseSkill;
460
+ $[75] = commandMenuOpen;
461
+ $[76] = commandQuery;
462
+ $[77] = commands;
463
+ $[78] = completeCommand;
464
+ $[79] = files_0;
465
+ $[80] = inputAria;
466
+ $[81] = listId;
467
+ $[82] = mention;
468
+ $[83] = mentionCount;
469
+ $[84] = mentionMenuOpen;
470
+ $[85] = menuOpen;
471
+ $[86] = pickCommand;
472
+ $[87] = referables;
473
+ $[88] = referenceChips;
474
+ $[89] = referenceMatches;
475
+ $[90] = referenceMenuOpen;
476
+ $[91] = skillMatches;
477
+ $[92] = skillMenuOpen;
478
+ $[93] = t19;
479
+ $[94] = t20;
480
+ $[95] = trackTriggers;
481
+ $[96] = t21;
488
482
  } else {
489
- t21 = $[101];
483
+ t21 = $[96];
490
484
  }
491
485
  return t21;
492
486
  }
@@ -1,9 +1,11 @@
1
1
  import { createElement } from 'react';
2
- import { Database, FileText, Frame, Globe, MessageSquare, PenTool, Smartphone, StickyNote, Terminal, Type, Workflow } from 'lucide-react';
2
+ import { Database, FileText, Folder, Frame, Globe, MessageSquare, PenTool, Smartphone, StickyNote, SwatchBook, Terminal, Type, Workflow } from 'lucide-react';
3
3
  import { Icon } from '@adecore/ui';
4
4
  /* The mark of what a `#` points at, in the picker and on its chip, when the host draws none of its own. */
5
5
  export const REFERENCE_ICONS = {
6
+ project: Folder,
6
7
  canvas: Frame,
8
+ design: SwatchBook,
7
9
  chat: MessageSquare,
8
10
  terminal: Terminal,
9
11
  note: StickyNote,
@@ -446,7 +446,7 @@ function _temp(e) {
446
446
  return copySelectionWithChips(e.nativeEvent);
447
447
  }
448
448
  export function SentMessageRow(t0) {
449
- const $ = _c(14);
449
+ const $ = _c(18);
450
450
  const {
451
451
  chatId,
452
452
  id,
@@ -494,18 +494,31 @@ export function SentMessageRow(t0) {
494
494
  t3 = $[10];
495
495
  }
496
496
  let t4;
497
- if ($[11] !== lookup || $[12] !== t3) {
498
- t4 = /*#__PURE__*/_jsx(ReferenceLookupContext, {
499
- value: lookup,
500
- children: t3
497
+ if ($[11] !== message.state || $[12] !== t) {
498
+ t4 = message.state !== undefined && /*#__PURE__*/_jsx("div", {
499
+ className: "mt-1 text-xs text-text-muted",
500
+ children: t(`rows.message.${message.state}`)
501
501
  });
502
- $[11] = lookup;
503
- $[12] = t3;
502
+ $[11] = message.state;
503
+ $[12] = t;
504
504
  $[13] = t4;
505
505
  } else {
506
506
  t4 = $[13];
507
507
  }
508
- return t4;
508
+ let t5;
509
+ if ($[14] !== lookup || $[15] !== t3 || $[16] !== t4) {
510
+ t5 = /*#__PURE__*/_jsxs(ReferenceLookupContext, {
511
+ value: lookup,
512
+ children: [t3, t4]
513
+ });
514
+ $[14] = lookup;
515
+ $[15] = t3;
516
+ $[16] = t4;
517
+ $[17] = t5;
518
+ } else {
519
+ t5 = $[17];
520
+ }
521
+ return t5;
509
522
  }
510
523
  /* What the host told the agent in front of a prompt, said under the host's own name, which the text no longer has to lead with. */
511
524
  function HostSaidRow(t0) {
@@ -123,6 +123,8 @@ declare const _default: {
123
123
  message: {
124
124
  heading: string;
125
125
  unnamed: string;
126
+ waiting: string;
127
+ dropped: string;
126
128
  };
127
129
  report: {
128
130
  heading: string;
@@ -368,6 +370,7 @@ declare const _default: {
368
370
  canvas: string;
369
371
  views: string;
370
372
  noMatch: string;
373
+ currentProject: string;
371
374
  kinds: {
372
375
  canvas: string;
373
376
  chat: string;
@@ -122,7 +122,9 @@ export default {
122
122
  },
123
123
  message: {
124
124
  heading: 'Message from {{name}}',
125
- unnamed: 'another node'
125
+ unnamed: 'another node',
126
+ waiting: 'Waiting for the next turn',
127
+ dropped: 'Expired before the agent read it'
126
128
  },
127
129
  report: {
128
130
  heading: 'Report'
@@ -368,6 +370,7 @@ export default {
368
370
  canvas: 'On this canvas',
369
371
  views: 'Views',
370
372
  noMatch: 'No view or node matches',
373
+ currentProject: 'This project',
371
374
  kinds: {
372
375
  canvas: 'canvas',
373
376
  chat: 'chat',
@@ -23,7 +23,6 @@ declare const _default: {
23
23
  signedOut: string;
24
24
  signedOutDetail: string;
25
25
  logIn: string;
26
- nextReset: string;
27
26
  checked: {
28
27
  now: string;
29
28
  ago: string;
@@ -23,7 +23,6 @@ export default {
23
23
  signedOut: 'Not logged in',
24
24
  signedOutDetail: 'Not logged in. Log in to see limits.',
25
25
  logIn: 'Log in',
26
- nextReset: '{{window}} resets {{at}}',
27
26
  checked: {
28
27
  now: 'now',
29
28
  ago: '{{duration}} ago',
@@ -123,6 +123,8 @@ declare const _default: {
123
123
  message: {
124
124
  heading: string;
125
125
  unnamed: string;
126
+ waiting: string;
127
+ dropped: string;
126
128
  };
127
129
  report: {
128
130
  heading: string;
@@ -368,6 +370,7 @@ declare const _default: {
368
370
  canvas: string;
369
371
  views: string;
370
372
  noMatch: string;
373
+ currentProject: string;
371
374
  kinds: {
372
375
  canvas: string;
373
376
  chat: string;
@@ -122,7 +122,9 @@ export default {
122
122
  },
123
123
  message: {
124
124
  heading: 'Bericht van {{name}}',
125
- unnamed: 'een andere node'
125
+ unnamed: 'een andere node',
126
+ waiting: 'Wacht op de volgende beurt',
127
+ dropped: 'Vervallen voordat de agent het las'
126
128
  },
127
129
  report: {
128
130
  heading: 'Rapport'
@@ -368,6 +370,7 @@ export default {
368
370
  canvas: 'Op dit canvas',
369
371
  views: 'Views',
370
372
  noMatch: 'Geen view of node gevonden',
373
+ currentProject: 'Dit project',
371
374
  kinds: {
372
375
  canvas: 'canvas',
373
376
  chat: 'chat',
@@ -23,7 +23,6 @@ declare const _default: {
23
23
  signedOut: string;
24
24
  signedOutDetail: string;
25
25
  logIn: string;
26
- nextReset: string;
27
26
  checked: {
28
27
  now: string;
29
28
  ago: string;
@@ -23,7 +23,6 @@ export default {
23
23
  signedOut: 'Niet ingelogd',
24
24
  signedOutDetail: 'Niet ingelogd. Log in om limieten te zien.',
25
25
  logIn: 'Inloggen',
26
- nextReset: '{{window}} reset {{at}}',
27
26
  checked: {
28
27
  now: 'nu',
29
28
  ago: '{{duration}} geleden',
@@ -11,8 +11,11 @@ interface LimitsListProps {
11
11
  compact?: boolean;
12
12
  }
13
13
  export declare function LimitsList({ limits, now, compact }: LimitsListProps): import("react").JSX.Element;
14
- export declare function AccountLimitsList({ groups, now }: {
14
+ interface AccountLimitsListProps {
15
15
  groups: readonly LimitGroup[];
16
16
  now: number;
17
- }): import("react").JSX.Element;
17
+ folded: ReadonlySet<string>;
18
+ onFoldedChange: (folded: ReadonlySet<string>) => void;
19
+ }
20
+ export declare function AccountLimitsList({ groups, now, folded, onFoldedChange }: AccountLimitsListProps): import("react").JSX.Element;
18
21
  export {};