@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.
- package/dist/chat/chat-references.d.ts +13 -1
- package/dist/chat/chat-references.js +13 -2
- package/dist/chat/ui/ReferenceChip.js +98 -77
- package/dist/chat/ui/ReferenceTrail.d.ts +11 -0
- package/dist/chat/ui/ReferenceTrail.js +65 -0
- package/dist/chat/ui/RunSettings.js +2 -2
- package/dist/chat/ui/SessionLine.js +1 -1
- package/dist/chat/ui/chips.d.ts +1 -0
- package/dist/chat/ui/chips.js +2 -0
- package/dist/chat/ui/composer/ComposerMenu.js +28 -22
- package/dist/chat/ui/composer/chips.d.ts +3 -2
- package/dist/chat/ui/composer/chips.js +21 -9
- package/dist/chat/ui/composer/use-prompt-menus.d.ts +1 -0
- package/dist/chat/ui/composer/use-prompt-menus.js +115 -121
- package/dist/chat/ui/reference-icons.js +3 -1
- package/dist/chat/ui/rows/MessageRows.js +21 -8
- package/dist/locales/en/agent-chat.d.ts +3 -0
- package/dist/locales/en/agent-chat.js +4 -1
- package/dist/locales/en/agent-usage.d.ts +0 -1
- package/dist/locales/en/agent-usage.js +0 -1
- package/dist/locales/nl/agent-chat.d.ts +3 -0
- package/dist/locales/nl/agent-chat.js +4 -1
- package/dist/locales/nl/agent-usage.d.ts +0 -1
- package/dist/locales/nl/agent-usage.js +0 -1
- package/dist/usage/LimitsList.d.ts +5 -2
- package/dist/usage/LimitsList.js +649 -231
- package/dist/usage/UsageBreakdown.js +1 -1
- package/dist/usage/UsageLimits.js +1 -1
- package/dist/usage/UsageLimitsCard.js +81 -54
- package/dist/usage/limit-groups.d.ts +4 -3
- package/dist/usage/limit-groups.js +21 -11
- package/package.json +8 -8
- package/src/chat/chat-references.ts +53 -4
- package/src/chat/ui/ReferenceChip.tsx +8 -2
- package/src/chat/ui/ReferenceTrail.tsx +29 -0
- package/src/chat/ui/RunSettings.tsx +2 -2
- package/src/chat/ui/SessionLine.tsx +1 -1
- package/src/chat/ui/chips.ts +3 -0
- package/src/chat/ui/composer/ComposerMenu.tsx +30 -11
- package/src/chat/ui/composer/chips.ts +29 -11
- package/src/chat/ui/composer/use-prompt-menus.ts +12 -7
- package/src/chat/ui/reference-icons.ts +18 -1
- package/src/chat/ui/rows/MessageRows.tsx +1 -0
- package/src/locales/en/agent-chat.ts +4 -1
- package/src/locales/en/agent-usage.ts +0 -1
- package/src/locales/nl/agent-chat.ts +4 -1
- package/src/locales/nl/agent-usage.ts +0 -1
- package/src/usage/LimitsList.tsx +183 -54
- package/src/usage/UsageBreakdown.tsx +1 -1
- package/src/usage/UsageLimits.tsx +1 -1
- package/src/usage/UsageLimitsCard.tsx +11 -7
- 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 =
|
|
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(
|
|
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] !==
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
221
|
+
$[26] = cwd;
|
|
222
|
+
$[27] = draft.mentions;
|
|
223
|
+
$[28] = draft.skills;
|
|
224
|
+
$[29] = referenceChips;
|
|
225
|
+
$[30] = t8;
|
|
232
226
|
} else {
|
|
233
|
-
t8 = $[
|
|
227
|
+
t8 = $[30];
|
|
234
228
|
}
|
|
235
229
|
const trackTriggers = t8;
|
|
236
230
|
let t9;
|
|
237
|
-
if ($[
|
|
231
|
+
if ($[31] !== inputRef) {
|
|
238
232
|
t9 = caret_0 => {
|
|
239
233
|
requestAnimationFrame(() => inputRef.current?.setCaret(caret_0));
|
|
240
234
|
};
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
235
|
+
$[31] = inputRef;
|
|
236
|
+
$[32] = t9;
|
|
243
237
|
} else {
|
|
244
|
-
t9 = $[
|
|
238
|
+
t9 = $[32];
|
|
245
239
|
}
|
|
246
240
|
const moveCaret = t9;
|
|
247
241
|
let t10;
|
|
248
|
-
if ($[
|
|
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
|
-
$[
|
|
248
|
+
$[33] = t10;
|
|
255
249
|
} else {
|
|
256
|
-
t10 = $[
|
|
250
|
+
t10 = $[33];
|
|
257
251
|
}
|
|
258
252
|
const close = t10;
|
|
259
253
|
let t11;
|
|
260
|
-
if ($[
|
|
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
|
-
$[
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
264
|
+
$[34] = draft.mentions;
|
|
265
|
+
$[35] = mention;
|
|
266
|
+
$[36] = moveCaret;
|
|
267
|
+
$[37] = setText;
|
|
268
|
+
$[38] = text;
|
|
269
|
+
$[39] = t11;
|
|
276
270
|
} else {
|
|
277
|
-
t11 = $[
|
|
271
|
+
t11 = $[39];
|
|
278
272
|
}
|
|
279
273
|
const chooseMention = t11;
|
|
280
274
|
let t12;
|
|
281
|
-
if ($[
|
|
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
|
-
$[
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
282
|
+
$[40] = chooseMention;
|
|
283
|
+
$[41] = mention;
|
|
284
|
+
$[42] = searched;
|
|
285
|
+
$[43] = t12;
|
|
292
286
|
} else {
|
|
293
|
-
t12 = $[
|
|
287
|
+
t12 = $[43];
|
|
294
288
|
}
|
|
295
289
|
const chooseMentionAt = t12;
|
|
296
290
|
let t13;
|
|
297
|
-
if ($[
|
|
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
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
312
|
+
$[44] = moveCaret;
|
|
313
|
+
$[45] = referenceQuery;
|
|
314
|
+
$[46] = setDraft;
|
|
315
|
+
$[47] = text;
|
|
316
|
+
$[48] = t13;
|
|
323
317
|
} else {
|
|
324
|
-
t13 = $[
|
|
318
|
+
t13 = $[48];
|
|
325
319
|
}
|
|
326
320
|
const chooseReference = t13;
|
|
327
321
|
let t14;
|
|
328
|
-
if ($[
|
|
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
|
-
$[
|
|
336
|
-
$[
|
|
337
|
-
$[
|
|
329
|
+
$[49] = chooseReference;
|
|
330
|
+
$[50] = referenceMatches;
|
|
331
|
+
$[51] = t14;
|
|
338
332
|
} else {
|
|
339
|
-
t14 = $[
|
|
333
|
+
t14 = $[51];
|
|
340
334
|
}
|
|
341
335
|
const chooseReferenceAt = t14;
|
|
342
336
|
let t15;
|
|
343
|
-
if ($[
|
|
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
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
358
|
-
$[
|
|
359
|
-
$[
|
|
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 = $[
|
|
355
|
+
t15 = $[58];
|
|
362
356
|
}
|
|
363
357
|
const chooseSkill = t15;
|
|
364
358
|
let t16;
|
|
365
|
-
if ($[
|
|
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
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
369
|
+
$[59] = chooseSkill;
|
|
370
|
+
$[60] = inputRef;
|
|
371
|
+
$[61] = setText;
|
|
372
|
+
$[62] = t16;
|
|
379
373
|
} else {
|
|
380
|
-
t16 = $[
|
|
374
|
+
t16 = $[62];
|
|
381
375
|
}
|
|
382
376
|
const pickCommand = t16;
|
|
383
377
|
let t17;
|
|
384
|
-
if ($[
|
|
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
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
386
|
+
$[63] = chooseSkill;
|
|
387
|
+
$[64] = setText;
|
|
388
|
+
$[65] = t17;
|
|
395
389
|
} else {
|
|
396
|
-
t17 = $[
|
|
390
|
+
t17 = $[65];
|
|
397
391
|
}
|
|
398
392
|
const completeCommand = t17;
|
|
399
393
|
let t18;
|
|
400
|
-
if ($[
|
|
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
|
-
$[
|
|
406
|
+
$[66] = t18;
|
|
413
407
|
} else {
|
|
414
|
-
t18 = $[
|
|
408
|
+
t18 = $[66];
|
|
415
409
|
}
|
|
416
410
|
const moveInMenu = t18;
|
|
417
411
|
const t19 = skills.length > 0;
|
|
418
412
|
let t20;
|
|
419
|
-
if ($[
|
|
413
|
+
if ($[67] !== skills) {
|
|
420
414
|
t20 = skills.map(_temp3);
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
415
|
+
$[67] = skills;
|
|
416
|
+
$[68] = t20;
|
|
423
417
|
} else {
|
|
424
|
-
t20 = $[
|
|
418
|
+
t20 = $[68];
|
|
425
419
|
}
|
|
426
420
|
let t21;
|
|
427
|
-
if ($[
|
|
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
|
-
$[
|
|
461
|
-
$[
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
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 = $[
|
|
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(
|
|
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] !==
|
|
498
|
-
t4 = /*#__PURE__*/_jsx(
|
|
499
|
-
|
|
500
|
-
children:
|
|
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] =
|
|
503
|
-
$[12] =
|
|
502
|
+
$[11] = message.state;
|
|
503
|
+
$[12] = t;
|
|
504
504
|
$[13] = t4;
|
|
505
505
|
} else {
|
|
506
506
|
t4 = $[13];
|
|
507
507
|
}
|
|
508
|
-
|
|
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',
|
|
@@ -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',
|
|
@@ -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
|
-
|
|
14
|
+
interface AccountLimitsListProps {
|
|
15
15
|
groups: readonly LimitGroup[];
|
|
16
16
|
now: number;
|
|
17
|
-
|
|
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 {};
|