@adecore/agents-react 0.50.4 → 0.50.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/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat/logic/command-looks.d.ts +6 -1
- package/dist/chat/logic/command-looks.js +50 -1
- package/dist/chat/logic/timeline-copy.js +2 -0
- package/dist/chat/logic/timeline.d.ts +6 -1
- package/dist/chat/logic/timeline.js +21 -3
- package/dist/chat/ui/ReferenceChip.d.ts +2 -1
- package/dist/chat/ui/ReferenceChip.js +90 -72
- package/dist/chat/ui/rows/MessageRows.d.ts +8 -1
- package/dist/chat/ui/rows/MessageRows.js +356 -108
- package/dist/chat/ui/rows/Rows.js +44 -24
- package/dist/chat/ui/rows/row-rhythm.js +3 -2
- package/dist/host.d.ts +15 -0
- package/dist/index.d.ts +1 -1
- package/dist/locales/en/agent-chat.d.ts +12 -0
- package/dist/locales/en/agent-chat.js +19 -7
- package/dist/locales/nl/agent-chat.d.ts +12 -0
- package/dist/locales/nl/agent-chat.js +31 -19
- package/dist/locales/nl/agent-prompts.js +1 -1
- package/package.json +8 -8
- package/src/chat/index.ts +1 -1
- package/src/chat/logic/command-looks.ts +62 -2
- package/src/chat/logic/timeline-copy.ts +2 -0
- package/src/chat/logic/timeline.ts +19 -4
- package/src/chat/ui/ReferenceChip.tsx +12 -4
- package/src/chat/ui/rows/MessageRows.tsx +88 -9
- package/src/chat/ui/rows/Rows.tsx +3 -0
- package/src/chat/ui/rows/row-rhythm.ts +7 -2
- package/src/host.ts +29 -0
- package/src/index.ts +2 -0
- package/src/locales/en/agent-chat.ts +19 -7
- package/src/locales/nl/agent-chat.ts +31 -19
- package/src/locales/nl/agent-prompts.ts +1 -1
|
@@ -15,9 +15,9 @@ import type {
|
|
|
15
15
|
ChatWorkflow
|
|
16
16
|
} from '@adecore/agent-contracts';
|
|
17
17
|
import { abortedByMachine } from '@adecore/agent-contracts';
|
|
18
|
-
import type { CommandLook, ThreadCard } from '../../host';
|
|
18
|
+
import type { CommandLook, CommandLookSent, ThreadCard } from '../../host';
|
|
19
19
|
import { formatElapsedShort } from '@adecore/ui/format';
|
|
20
|
-
import { matchCommandLook } from './command-looks';
|
|
20
|
+
import { matchCommandLook, sentMessageOf } from './command-looks';
|
|
21
21
|
import { isImageGeneration } from './generated-image';
|
|
22
22
|
import { handbackReportOf } from './handback';
|
|
23
23
|
import { toolEntry } from './tool-catalog';
|
|
@@ -58,6 +58,8 @@ export type TimelineRow =
|
|
|
58
58
|
| { kind: 'note'; id: string; level: 'info' | 'warning' | 'error'; text: string; from?: string; said?: true }
|
|
59
59
|
// A message another node sent the chat, drawn as said to it under the name of its sender.
|
|
60
60
|
| { kind: 'message'; id: string; message: ChatNoteMessage; createdAt: number }
|
|
61
|
+
// A message this chat's agent sent another node with a command of a look, drawn as said instead of as its call.
|
|
62
|
+
| { kind: 'sent'; id: string; tool: ChatToolItem; sent: CommandLookSent }
|
|
61
63
|
| { kind: 'compaction'; id: string; preTokens: number | null }
|
|
62
64
|
| {
|
|
63
65
|
kind: 'changed-files';
|
|
@@ -103,7 +105,7 @@ function shownRows(rows: TimelineRow[], options: TimelineOptions): TimelineRow[]
|
|
|
103
105
|
* against each other; prose and cards are blocks and need room around them. Where the two meet,
|
|
104
106
|
* the block gap marks the seam, so an answer never looks glued to the call above it.
|
|
105
107
|
*/
|
|
106
|
-
const BLOCK_KINDS = new Set<TimelineRow['kind']>(['assistant', 'report', 'thinking', 'changed-files', 'compaction', 'app-card', 'visual']);
|
|
108
|
+
const BLOCK_KINDS = new Set<TimelineRow['kind']>(['assistant', 'report', 'sent', 'thinking', 'changed-files', 'compaction', 'app-card', 'visual']);
|
|
107
109
|
|
|
108
110
|
export function isBlock(row: TimelineRow): boolean {
|
|
109
111
|
return BLOCK_KINDS.has(row.kind) || isImageRow(row);
|
|
@@ -210,8 +212,13 @@ export function summarizeTurn(tools: readonly ChatToolItem[], looks?: readonly C
|
|
|
210
212
|
const command = shellCommand(tool.name, tool.input);
|
|
211
213
|
const run = command === null ? null : matchCommandLook(command, looks);
|
|
212
214
|
const group = run?.match.group;
|
|
215
|
+
const sent = sentMessageOf(tool, looks);
|
|
213
216
|
|
|
214
|
-
if (
|
|
217
|
+
if (sent !== null && sent.state !== 'failed') {
|
|
218
|
+
add('agent-chat:group.sent', (count) => i18next.t('agent-chat:group.sent', { count }));
|
|
219
|
+
} else if (sent !== null) {
|
|
220
|
+
other += 1;
|
|
221
|
+
} else if (run !== null && group !== undefined) {
|
|
215
222
|
// Keyed by the program too, so two looks with a key in common keep their own sentences.
|
|
216
223
|
add(`look:${run.look.program}:${group.key}`, group.sentence);
|
|
217
224
|
} else if (failedFileChange(tool)) {
|
|
@@ -385,6 +392,14 @@ function rowsForItems(items: ChatItem[], options: TimelineOptions, children: Map
|
|
|
385
392
|
}
|
|
386
393
|
|
|
387
394
|
const report = handbackReportOf(item);
|
|
395
|
+
const sent = item.kind === 'tool' ? sentMessageOf(item, options.commandLooks) : null;
|
|
396
|
+
|
|
397
|
+
if (item.kind === 'tool' && sent !== null) {
|
|
398
|
+
flushTools(tools, rows, options);
|
|
399
|
+
rows.push({ kind: 'sent', id: item.id, tool: item, sent });
|
|
400
|
+
|
|
401
|
+
continue;
|
|
402
|
+
}
|
|
388
403
|
|
|
389
404
|
if (item.kind === 'tool' && item.workflow !== undefined) {
|
|
390
405
|
flushTools(tools, rows, options);
|
|
@@ -2,7 +2,7 @@ import { useContext, type HTMLAttributes, type KeyboardEvent, type ReactNode } f
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { CircleOff } from 'lucide-react';
|
|
5
|
-
import { Icon } from '@adecore/ui';
|
|
5
|
+
import { Icon, Tooltip } from '@adecore/ui';
|
|
6
6
|
import { useChatHost } from '../../host';
|
|
7
7
|
import { REFERENCE_GONE_TONE, REFERENCE_TONE, TOKEN_ICON, TOKEN_ICON_BOX, TOKEN_IN_MESSAGE } from './chips';
|
|
8
8
|
import { referenceGlyph } from './reference-icons';
|
|
@@ -55,16 +55,16 @@ export function TokenChip({ kind, value, sigil, icon, label, tone, onOpen, class
|
|
|
55
55
|
|
|
56
56
|
/*
|
|
57
57
|
* A view, node or chat a message points at, under the name it has now. One that went says so, under
|
|
58
|
-
* `lastName` when the message knows what it was called.
|
|
58
|
+
* `lastName` when the message knows what it was called, with `goneHint` on its tooltip when there is one.
|
|
59
59
|
*/
|
|
60
|
-
export function ReferenceChip({ id, lastName }: { id: string; lastName?: string }) {
|
|
60
|
+
export function ReferenceChip({ id, lastName, goneHint }: { id: string; lastName?: string; goneHint?: string }) {
|
|
61
61
|
const { t } = useTranslation('agent-chat');
|
|
62
62
|
const { items, open } = useContext(ReferenceLookupContext);
|
|
63
63
|
const { ReferenceIcon } = useChatHost();
|
|
64
64
|
const item = items.find((candidate) => candidate.id === id);
|
|
65
65
|
|
|
66
66
|
if (item === undefined) {
|
|
67
|
-
|
|
67
|
+
const chip = (
|
|
68
68
|
<TokenChip
|
|
69
69
|
kind="gone"
|
|
70
70
|
icon={<Icon icon={CircleOff} size={14} className={TOKEN_ICON} />}
|
|
@@ -72,6 +72,14 @@ export function ReferenceChip({ id, lastName }: { id: string; lastName?: string
|
|
|
72
72
|
tone={REFERENCE_GONE_TONE}
|
|
73
73
|
/>
|
|
74
74
|
);
|
|
75
|
+
|
|
76
|
+
return goneHint === undefined ? (
|
|
77
|
+
chip
|
|
78
|
+
) : (
|
|
79
|
+
<Tooltip label={goneHint}>
|
|
80
|
+
<span className="inline-flex">{chip}</span>
|
|
81
|
+
</Tooltip>
|
|
82
|
+
);
|
|
75
83
|
}
|
|
76
84
|
|
|
77
85
|
return (
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { useContext, useState, type ReactNode } from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Bot,
|
|
6
|
+
Brain,
|
|
7
|
+
Check,
|
|
8
|
+
ChevronDown,
|
|
9
|
+
CircleAlert,
|
|
10
|
+
File,
|
|
11
|
+
Info,
|
|
12
|
+
MessageCircleQuestionMark,
|
|
13
|
+
Reply,
|
|
14
|
+
Send,
|
|
15
|
+
SquareTerminal,
|
|
16
|
+
TriangleAlert,
|
|
17
|
+
X
|
|
18
|
+
} from 'lucide-react';
|
|
5
19
|
import type {
|
|
6
20
|
ChatApprovalItem,
|
|
7
21
|
ChatAttachment,
|
|
@@ -9,6 +23,7 @@ import type {
|
|
|
9
23
|
ChatNoteMessage,
|
|
10
24
|
ChatQuestionItem,
|
|
11
25
|
ChatThinkingItem,
|
|
26
|
+
ChatToolItem,
|
|
12
27
|
ChatUiChoiceOrigin,
|
|
13
28
|
ChatUserItem
|
|
14
29
|
} from '@adecore/agent-contracts';
|
|
@@ -30,18 +45,19 @@ import { settledBlocksText } from '../markdown-blocks';
|
|
|
30
45
|
import { WHOLE_FADE_CLASS } from '../rehype-fade';
|
|
31
46
|
import { useRevealedText } from '../reveal';
|
|
32
47
|
import { formatAgo, formatElapsedShort, formatMoment, formatTokens } from '@adecore/ui/format';
|
|
33
|
-
import { Icon, MiddleTruncate, Tooltip, useTickingText } from '@adecore/ui';
|
|
48
|
+
import { Icon, IconButton, MiddleTruncate, Tooltip, useTickingText } from '@adecore/ui';
|
|
34
49
|
import { thoughtLine, thoughtPreview } from '../../logic/thought';
|
|
35
|
-
import { toolSummary, toolSummaryIsPath } from '../../logic/tools';
|
|
50
|
+
import { toolStartedAt, toolSummary, toolSummaryIsPath } from '../../logic/tools';
|
|
36
51
|
import { ROW_GUTTER } from '../icons';
|
|
37
52
|
import { useOpenForFind } from '../find-reveal';
|
|
38
53
|
import { ReplyContext, UiReplyNavigationContext } from '../reply-context';
|
|
39
54
|
import { UiReply } from '../intelligent-ui/UiReply';
|
|
40
|
-
import { useChatHost, type ReplyAuthor } from '../../../host';
|
|
55
|
+
import { useChatHost, type CommandLookSent, type ReplyAuthor } from '../../../host';
|
|
41
56
|
import { useHostAttachmentUrl, useHostChatPlace, useHostReplyAuthor, useHostStreaming } from '../../../host-hooks';
|
|
42
57
|
import { REFERENCE_TONE, TOKEN_IN_MESSAGE } from '../chips';
|
|
43
58
|
import { copySelectionWithChips } from '../chip-clipboard';
|
|
44
59
|
import { useReferenceLookup } from '../thread-references';
|
|
60
|
+
import { RunningFor, ToolBody } from './WorkRows';
|
|
45
61
|
|
|
46
62
|
// A long prompt folds so the answer stays in view; the reader can open it.
|
|
47
63
|
const USER_FOLD_LINES = 8;
|
|
@@ -201,7 +217,7 @@ export function SentMessageRow({ chatId, id, message }: { chatId: string; id: st
|
|
|
201
217
|
<ReferenceLookupContext value={lookup}>
|
|
202
218
|
<SaidMessage
|
|
203
219
|
id={id}
|
|
204
|
-
|
|
220
|
+
heading={t('rows.message.heading', { name: message.title || t('rows.message.unnamed') })}
|
|
205
221
|
chip={<ReferenceChip id={message.from} lastName={message.title} />}
|
|
206
222
|
text={message.text}
|
|
207
223
|
/>
|
|
@@ -210,8 +226,51 @@ export function SentMessageRow({ chatId, id, message }: { chatId: string; id: st
|
|
|
210
226
|
);
|
|
211
227
|
}
|
|
212
228
|
|
|
229
|
+
/*
|
|
230
|
+
* A message this chat's agent sent another node: said by the agent, so outlined rather than filled like what is
|
|
231
|
+
* said to it, under a chip that names and opens where it went, with how it went and its call below.
|
|
232
|
+
*/
|
|
233
|
+
export function SentByAgentRow({ chatId, id, tool, sent }: { chatId: string; id: string; tool: ChatToolItem; sent: CommandLookSent }) {
|
|
234
|
+
const { t } = useTranslation('agent-chat');
|
|
235
|
+
const lookup = useReferenceLookup(chatId);
|
|
236
|
+
const [open, setOpen] = useState(false);
|
|
237
|
+
const name = sent.title || t('rows.message.unnamed');
|
|
238
|
+
const status = t(`rows.sent.${sent.state}`);
|
|
239
|
+
|
|
240
|
+
return (
|
|
241
|
+
<ReferenceLookupContext value={lookup}>
|
|
242
|
+
<SaidMessage
|
|
243
|
+
id={id}
|
|
244
|
+
heading={t('rows.sent.heading', { name })}
|
|
245
|
+
chip={
|
|
246
|
+
<span className="flex items-center gap-1.5 text-xs text-text-muted">
|
|
247
|
+
<Icon icon={Send} size={12} />
|
|
248
|
+
{t('rows.sent.to')}
|
|
249
|
+
<ReferenceChip id={sent.to} lastName={sent.title ?? ''} goneHint={sent.hint ?? sent.to} />
|
|
250
|
+
</span>
|
|
251
|
+
}
|
|
252
|
+
text={sent.text}
|
|
253
|
+
outlined
|
|
254
|
+
dimmed={sent.state === 'failed'}
|
|
255
|
+
/>
|
|
256
|
+
<div className="mt-1 flex items-center gap-1.5 text-xs text-text-muted">
|
|
257
|
+
<span>{sent.reason === undefined ? status : `${status} · ${sent.reason}`}</span>
|
|
258
|
+
{sent.state === 'sending' && <RunningFor startedAt={toolStartedAt(tool)} />}
|
|
259
|
+
<IconButton
|
|
260
|
+
icon={SquareTerminal}
|
|
261
|
+
size="sm"
|
|
262
|
+
label={t(open ? 'rows.sent.hideCall' : 'rows.sent.showCall')}
|
|
263
|
+
onClick={() => setOpen((was) => !was)}
|
|
264
|
+
/>
|
|
265
|
+
</div>
|
|
266
|
+
{open && <ToolBody tool={tool} chatId={chatId} />}
|
|
267
|
+
</ReferenceLookupContext>
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
|
|
213
271
|
/* 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. */
|
|
214
272
|
function HostSaidRow({ id, text, author }: { id: string; text: string; author: ReplyAuthor }) {
|
|
273
|
+
const { t } = useTranslation('agent-chat');
|
|
215
274
|
const prefix = `${author.name}: `;
|
|
216
275
|
const words = text
|
|
217
276
|
.split('\n\n')
|
|
@@ -221,7 +280,7 @@ function HostSaidRow({ id, text, author }: { id: string; text: string; author: R
|
|
|
221
280
|
return (
|
|
222
281
|
<SaidMessage
|
|
223
282
|
id={id}
|
|
224
|
-
|
|
283
|
+
heading={t('rows.message.heading', { name: author.name })}
|
|
225
284
|
chip={
|
|
226
285
|
<span className={clsx(TOKEN_IN_MESSAGE, REFERENCE_TONE, 'inline-flex items-center gap-1')}>
|
|
227
286
|
{author.mark}
|
|
@@ -234,7 +293,21 @@ function HostSaidRow({ id, text, author }: { id: string; text: string; author: R
|
|
|
234
293
|
}
|
|
235
294
|
|
|
236
295
|
/* A message the person did not write: a bubble on the left, quieter than theirs, under a chip of who said it. A long one folds. */
|
|
237
|
-
function SaidMessage({
|
|
296
|
+
function SaidMessage({
|
|
297
|
+
id,
|
|
298
|
+
heading,
|
|
299
|
+
chip,
|
|
300
|
+
text,
|
|
301
|
+
outlined = false,
|
|
302
|
+
dimmed = false
|
|
303
|
+
}: {
|
|
304
|
+
id: string;
|
|
305
|
+
heading: string;
|
|
306
|
+
chip: ReactNode;
|
|
307
|
+
text: string;
|
|
308
|
+
outlined?: boolean;
|
|
309
|
+
dimmed?: boolean;
|
|
310
|
+
}) {
|
|
238
311
|
const { t } = useTranslation('agent-chat');
|
|
239
312
|
const [open, setOpen] = useState(false);
|
|
240
313
|
const long = text.split('\n').length > USER_FOLD_LINES || text.length > USER_FOLD_CHARS;
|
|
@@ -242,9 +315,15 @@ function SaidMessage({ id, name, chip, text }: { id: string; name: string; chip:
|
|
|
242
315
|
|
|
243
316
|
return (
|
|
244
317
|
<div data-find-item={id} className="flex flex-col items-start">
|
|
245
|
-
<MessageHeading>{
|
|
318
|
+
<MessageHeading>{heading}</MessageHeading>
|
|
246
319
|
<div className="mb-1.5 flex max-w-[80%]">{chip}</div>
|
|
247
|
-
<div
|
|
320
|
+
<div
|
|
321
|
+
className={clsx(
|
|
322
|
+
'relative max-w-[80%] rounded-2xl px-3.5 py-2.5 text-sm wrap-anywhere text-text select-text',
|
|
323
|
+
outlined ? 'border border-border' : 'bg-surface-hover',
|
|
324
|
+
dimmed && 'opacity-60'
|
|
325
|
+
)}
|
|
326
|
+
>
|
|
248
327
|
<div data-find-field="text" className={clsx(long && !open && FOLD)}>
|
|
249
328
|
<MessageMarkdown text={text} />
|
|
250
329
|
</div>
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
NoteRow,
|
|
13
13
|
QuestionHistoryRow,
|
|
14
14
|
ReportRow,
|
|
15
|
+
SentByAgentRow,
|
|
15
16
|
SentMessageRow,
|
|
16
17
|
ThinkingRow,
|
|
17
18
|
UserRow
|
|
@@ -111,6 +112,8 @@ export function Row({ row, chatId, toggleGroup, toggleTurn, toggleSubagent, open
|
|
|
111
112
|
return <NoteRow id={row.id} level={row.level} text={row.text} from={row.from} said={row.said} />;
|
|
112
113
|
case 'message':
|
|
113
114
|
return <SentMessageRow chatId={chatId} id={row.id} message={row.message} />;
|
|
115
|
+
case 'sent':
|
|
116
|
+
return <SentByAgentRow chatId={chatId} id={row.id} tool={row.tool} sent={row.sent} />;
|
|
114
117
|
case 'compaction':
|
|
115
118
|
return <CompactionRow preTokens={row.preTokens} />;
|
|
116
119
|
case 'working':
|
|
@@ -7,7 +7,8 @@ export const FOLLOW_THRESHOLD_PX = 40;
|
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
* A seam where tool lines meet prose gets the block gap, and so does the row under a visual or an app's
|
|
10
|
-
* card, which have no margin of their own
|
|
10
|
+
* card, which have no margin of their own, and each end of a run of sent messages, which sit as tight as
|
|
11
|
+
* work lines so a fan-out reads as one stretch. A question and the answer after it never take a seam.
|
|
11
12
|
*/
|
|
12
13
|
/* A person's message, or one another node sent: both are said to the chat and drawn the same way. */
|
|
13
14
|
export function saidToChat(row: TimelineRow): boolean {
|
|
@@ -17,7 +18,11 @@ export function saidToChat(row: TimelineRow): boolean {
|
|
|
17
18
|
export function rowRhythm(row: TimelineRow, previous: TimelineRow | null): string {
|
|
18
19
|
const question = saidToChat(row);
|
|
19
20
|
const bare = previous?.kind === 'visual' || previous?.kind === 'app-card';
|
|
20
|
-
const seam =
|
|
21
|
+
const seam =
|
|
22
|
+
!question &&
|
|
23
|
+
previous !== null &&
|
|
24
|
+
!saidToChat(previous) &&
|
|
25
|
+
(isBlock(row) !== isBlock(previous) || bare || (row.kind === 'sent') !== (previous.kind === 'sent'));
|
|
21
26
|
|
|
22
27
|
return clsx(question && 'pb-(--chat-answer-gap)', seam && 'pt-(--chat-block-gap)');
|
|
23
28
|
}
|
package/src/host.ts
CHANGED
|
@@ -278,6 +278,30 @@ export interface CommandLookMatch {
|
|
|
278
278
|
languages?: Readonly<Record<string, string>>;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
+
/* A call of a look's program that may be a message, as `CommandLook.sent` gets it. */
|
|
282
|
+
export interface CommandLookCall {
|
|
283
|
+
/* The words after the program, quotes taken out. */
|
|
284
|
+
readonly args: readonly string[];
|
|
285
|
+
/* The lines a heredoc feeds the command; null without one. */
|
|
286
|
+
readonly heredoc: string | null;
|
|
287
|
+
readonly state: 'running' | 'done' | 'error';
|
|
288
|
+
readonly output: string | null;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* A message a call sent to another node of the app, drawn as said rather than as a tool line. */
|
|
292
|
+
export interface CommandLookSent {
|
|
293
|
+
/* The id of the node it went to, for its chip. */
|
|
294
|
+
readonly to: string;
|
|
295
|
+
/* What the node was called when the message went, shown once the chip finds no node under `to`. */
|
|
296
|
+
readonly title?: string;
|
|
297
|
+
/* On the chip of a node it cannot find; the id `to` when left out. */
|
|
298
|
+
readonly hint?: string;
|
|
299
|
+
readonly text: string;
|
|
300
|
+
readonly state: 'sending' | 'delivered' | 'waiting' | 'failed';
|
|
301
|
+
/* Why a failed one did not go, in the app's words. */
|
|
302
|
+
readonly reason?: string;
|
|
303
|
+
}
|
|
304
|
+
|
|
281
305
|
/* A program the app recognizes inside a shell call and draws as a tool of its own. */
|
|
282
306
|
export interface CommandLook {
|
|
283
307
|
/* The program as it is run, matched on its last path segment. */
|
|
@@ -296,6 +320,11 @@ export interface CommandLook {
|
|
|
296
320
|
* option the word is the value of, or null for a word that follows none.
|
|
297
321
|
*/
|
|
298
322
|
useNames?(scopeId: string, chatId: string): (word: string, option: string | null) => CommandName | null;
|
|
323
|
+
/*
|
|
324
|
+
* The message a call sent, for a line that holds only this call and nothing the shell fills in; null
|
|
325
|
+
* leaves it a tool line. Asked again as the call goes on, so it answers from the state and the output.
|
|
326
|
+
*/
|
|
327
|
+
sent?(call: CommandLookCall): CommandLookSent | null;
|
|
299
328
|
}
|
|
300
329
|
|
|
301
330
|
/*
|
package/src/index.ts
CHANGED
|
@@ -126,6 +126,16 @@ export default {
|
|
|
126
126
|
waiting: 'Waiting for the next turn',
|
|
127
127
|
dropped: 'Expired before the agent read it'
|
|
128
128
|
},
|
|
129
|
+
sent: {
|
|
130
|
+
heading: 'Message to {{name}}',
|
|
131
|
+
to: 'To',
|
|
132
|
+
sending: 'Sending',
|
|
133
|
+
delivered: 'Delivered',
|
|
134
|
+
waiting: 'Waiting for its next turn',
|
|
135
|
+
failed: 'Not sent',
|
|
136
|
+
showCall: 'Show the call',
|
|
137
|
+
hideCall: 'Hide the call'
|
|
138
|
+
},
|
|
129
139
|
report: {
|
|
130
140
|
heading: 'Report'
|
|
131
141
|
},
|
|
@@ -278,8 +288,8 @@ export default {
|
|
|
278
288
|
Glob_other: 'Listed {{count}} patterns',
|
|
279
289
|
WebFetch_one: 'Fetched {{count}} page',
|
|
280
290
|
WebFetch_other: 'Fetched {{count}} pages',
|
|
281
|
-
WebSearch_one: '
|
|
282
|
-
WebSearch_other: '
|
|
291
|
+
WebSearch_one: 'Ran {{count}} web search',
|
|
292
|
+
WebSearch_other: 'Ran {{count}} web searches',
|
|
283
293
|
Task_one: 'Delegated {{count}} task',
|
|
284
294
|
Task_other: 'Delegated {{count}} tasks',
|
|
285
295
|
Agent_one: 'Delegated {{count}} task',
|
|
@@ -293,6 +303,8 @@ export default {
|
|
|
293
303
|
calls_other: '{{name}} {{count}} calls',
|
|
294
304
|
edited_one: 'Edited {{count}} file',
|
|
295
305
|
edited_other: 'Edited {{count}} files',
|
|
306
|
+
sent_one: 'Sent {{count}} message',
|
|
307
|
+
sent_other: 'Sent {{count}} messages',
|
|
296
308
|
toolCalls_one: '{{count}} tool call',
|
|
297
309
|
toolCalls_other: '{{count}} tool calls',
|
|
298
310
|
otherCalls_one: '{{count}} other tool call',
|
|
@@ -547,7 +559,7 @@ export default {
|
|
|
547
559
|
more: 'More actions',
|
|
548
560
|
remove: 'Remove visual',
|
|
549
561
|
removeTitle: 'Remove visual?',
|
|
550
|
-
removeDescription: '{{title}}
|
|
562
|
+
removeDescription: 'Deletes {{title}} from the chat. This cannot be undone.',
|
|
551
563
|
removeFailed: 'Could not remove visual',
|
|
552
564
|
loading: 'Loading {{title}}',
|
|
553
565
|
failed: 'Could not load {{title}}',
|
|
@@ -711,13 +723,13 @@ export default {
|
|
|
711
723
|
failed: 'Could not send. Try again.',
|
|
712
724
|
ready: 'Choices are ready'
|
|
713
725
|
},
|
|
714
|
-
answered: 'Answered with
|
|
715
|
-
chose: 'Chose
|
|
716
|
-
choseOlder: 'Chose
|
|
726
|
+
answered: 'Answered with "{{label}}"',
|
|
727
|
+
chose: 'Chose "{{label}}"',
|
|
728
|
+
choseOlder: 'Chose "{{label}}" on the reply of {{time}}',
|
|
717
729
|
notes_one: '{{count}} note',
|
|
718
730
|
notes_other: '{{count}} notes',
|
|
719
731
|
shownAsText: 'Shown as text',
|
|
720
|
-
unknownComponent: 'This version cannot
|
|
732
|
+
unknownComponent: 'This version cannot show {{component}}',
|
|
721
733
|
renderFailed: 'Could not show this part',
|
|
722
734
|
unreadable: 'Could not read block',
|
|
723
735
|
live: {
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
57
57
|
active: 'Werkt aan een doel',
|
|
58
58
|
paused: 'Doel gepauzeerd',
|
|
59
59
|
blocked: 'Doel geblokkeerd',
|
|
60
|
-
'usage-limited': 'Doel gestopt op een
|
|
60
|
+
'usage-limited': 'Doel gestopt op een verbruikslimiet',
|
|
61
61
|
'budget-limited': 'Doel heeft zijn tokenbudget op',
|
|
62
62
|
complete: 'Doel bereikt'
|
|
63
63
|
},
|
|
@@ -123,9 +123,19 @@ export default {
|
|
|
123
123
|
message: {
|
|
124
124
|
heading: 'Bericht van {{name}}',
|
|
125
125
|
unnamed: 'een andere node',
|
|
126
|
-
waiting: 'Wacht op de volgende
|
|
126
|
+
waiting: 'Wacht op de volgende turn',
|
|
127
127
|
dropped: 'Vervallen voordat de agent het las'
|
|
128
128
|
},
|
|
129
|
+
sent: {
|
|
130
|
+
heading: 'Bericht aan {{name}}',
|
|
131
|
+
to: 'Aan',
|
|
132
|
+
sending: 'Bezig met versturen',
|
|
133
|
+
delivered: 'Afgeleverd',
|
|
134
|
+
waiting: 'Wacht op de volgende turn',
|
|
135
|
+
failed: 'Niet verstuurd',
|
|
136
|
+
showCall: 'Aanroep tonen',
|
|
137
|
+
hideCall: 'Aanroep verbergen'
|
|
138
|
+
},
|
|
129
139
|
report: {
|
|
130
140
|
heading: 'Rapport'
|
|
131
141
|
},
|
|
@@ -201,7 +211,7 @@ export default {
|
|
|
201
211
|
diffLabel: 'Wijzigingen in {{path}}',
|
|
202
212
|
showDiff: 'Diff tonen',
|
|
203
213
|
loadingDiff: 'Diff laden',
|
|
204
|
-
diffUnavailable: '
|
|
214
|
+
diffUnavailable: 'Kon deze diff niet laden',
|
|
205
215
|
runningFor: 'loopt al {{elapsed}}',
|
|
206
216
|
awaitingApproval: 'wacht op jou',
|
|
207
217
|
forksAfter_one: 'Fork na deze turn',
|
|
@@ -212,9 +222,9 @@ export default {
|
|
|
212
222
|
},
|
|
213
223
|
changedFiles_one: '{{count}} gewijzigd bestand',
|
|
214
224
|
changedFiles_other: '{{count}} gewijzigde bestanden',
|
|
215
|
-
folderChanges_one: '{{count}} mapwijziging tijdens deze
|
|
216
|
-
folderChanges_other: '{{count}} mapwijzigingen tijdens deze
|
|
217
|
-
baseMoved: 'Branch verplaatst tijdens deze
|
|
225
|
+
folderChanges_one: '{{count}} mapwijziging tijdens deze turn',
|
|
226
|
+
folderChanges_other: '{{count}} mapwijzigingen tijdens deze turn',
|
|
227
|
+
baseMoved: 'Branch verplaatst tijdens deze turn ({{from}} naar {{to}}). Inclusief wat daarmee binnenkwam.',
|
|
218
228
|
andMore: 'en meer',
|
|
219
229
|
edits_one: '{{count}} bewerking',
|
|
220
230
|
edits_other: '{{count}} bewerkingen',
|
|
@@ -224,11 +234,11 @@ export default {
|
|
|
224
234
|
heredoc: 'heredoc',
|
|
225
235
|
moreRuns_one: '+{{count}}',
|
|
226
236
|
moreRuns_other: '+{{count}}',
|
|
227
|
-
showFullOutput: 'Volledige
|
|
237
|
+
showFullOutput: 'Volledige output tonen',
|
|
228
238
|
showFullDiff: 'Volledige diff tonen',
|
|
229
239
|
wholeSize: '{{size}} in totaal',
|
|
230
|
-
fullOutputFailed: '
|
|
231
|
-
fullDiffFailed: '
|
|
240
|
+
fullOutputFailed: 'Kon de volledige output niet laden',
|
|
241
|
+
fullDiffFailed: 'Kon de volledige diff niet laden',
|
|
232
242
|
retry: 'Opnieuw proberen'
|
|
233
243
|
},
|
|
234
244
|
timeline: {
|
|
@@ -293,6 +303,8 @@ export default {
|
|
|
293
303
|
calls_other: '{{name}}, {{count}} aanroepen',
|
|
294
304
|
edited_one: '{{count}} bestand bewerkt',
|
|
295
305
|
edited_other: '{{count}} bestanden bewerkt',
|
|
306
|
+
sent_one: '{{count}} bericht verstuurd',
|
|
307
|
+
sent_other: '{{count}} berichten verstuurd',
|
|
296
308
|
toolCalls_one: '{{count}} tool-aanroep',
|
|
297
309
|
toolCalls_other: '{{count}} tool-aanroepen',
|
|
298
310
|
otherCalls_one: '{{count}} andere tool-aanroep',
|
|
@@ -318,7 +330,7 @@ export default {
|
|
|
318
330
|
commands: "Commando's",
|
|
319
331
|
skills: 'Skills',
|
|
320
332
|
mentions: 'Vermeldingen',
|
|
321
|
-
references: '
|
|
333
|
+
references: 'Weergaven en nodes'
|
|
322
334
|
},
|
|
323
335
|
held: {
|
|
324
336
|
question: 'Er wacht een vraag. Opent zodra je stopt met typen.',
|
|
@@ -368,8 +380,8 @@ export default {
|
|
|
368
380
|
},
|
|
369
381
|
references: {
|
|
370
382
|
canvas: 'Op dit canvas',
|
|
371
|
-
views: '
|
|
372
|
-
noMatch: 'Geen
|
|
383
|
+
views: 'Weergaven',
|
|
384
|
+
noMatch: 'Geen weergave of node gevonden',
|
|
373
385
|
currentProject: 'Dit project',
|
|
374
386
|
kinds: {
|
|
375
387
|
canvas: 'canvas',
|
|
@@ -404,7 +416,7 @@ export default {
|
|
|
404
416
|
stop: 'Stoppen. Shift-klik stopt ook de sub-agents',
|
|
405
417
|
queueButton: 'In de wachtrij zetten',
|
|
406
418
|
continue: 'Doorgaan',
|
|
407
|
-
continueHint: 'Ga verder met de gestopte
|
|
419
|
+
continueHint: 'Ga verder met de gestopte turn',
|
|
408
420
|
send: 'Versturen',
|
|
409
421
|
sendActions: 'Meer verzendopties',
|
|
410
422
|
clear: {
|
|
@@ -414,7 +426,7 @@ export default {
|
|
|
414
426
|
},
|
|
415
427
|
waitingBelow: 'Antwoord hieronder',
|
|
416
428
|
steerButton: 'Nu versturen. Houd Option of Alt ingedrukt om in de wachtrij te zetten.',
|
|
417
|
-
queueWithSteerButton: 'In de wachtrij na deze
|
|
429
|
+
queueWithSteerButton: 'In de wachtrij na deze turn. Houd Option of Alt ingedrukt om nu te versturen.'
|
|
418
430
|
},
|
|
419
431
|
activity: {
|
|
420
432
|
subagents_one: '{{count}} sub-agent',
|
|
@@ -547,7 +559,7 @@ export default {
|
|
|
547
559
|
more: 'Meer acties',
|
|
548
560
|
remove: 'Visualisatie verwijderen',
|
|
549
561
|
removeTitle: 'Visualisatie verwijderen?',
|
|
550
|
-
removeDescription: '{{title}}
|
|
562
|
+
removeDescription: 'Verwijdert {{title}} uit de chat. Dit kan niet ongedaan worden gemaakt.',
|
|
551
563
|
removeFailed: 'Kon de visualisatie niet verwijderen',
|
|
552
564
|
loading: '{{title}} wordt geladen',
|
|
553
565
|
failed: 'Kon {{title}} niet laden',
|
|
@@ -711,13 +723,13 @@ export default {
|
|
|
711
723
|
failed: 'Versturen lukte niet. Probeer het opnieuw.',
|
|
712
724
|
ready: 'De keuzes staan klaar'
|
|
713
725
|
},
|
|
714
|
-
answered: 'Beantwoord met
|
|
715
|
-
chose: 'Gekozen:
|
|
716
|
-
choseOlder: 'Gekozen:
|
|
726
|
+
answered: 'Beantwoord met "{{label}}"',
|
|
727
|
+
chose: 'Gekozen: "{{label}}"',
|
|
728
|
+
choseOlder: 'Gekozen: "{{label}}", bij het antwoord van {{time}}',
|
|
717
729
|
notes_one: '{{count}} opmerking',
|
|
718
730
|
notes_other: '{{count}} opmerkingen',
|
|
719
731
|
shownAsText: 'Als tekst getoond',
|
|
720
|
-
unknownComponent: 'Deze versie kan {{component}} niet
|
|
732
|
+
unknownComponent: 'Deze versie kan {{component}} niet tonen',
|
|
721
733
|
renderFailed: 'Kon dit deel niet tonen',
|
|
722
734
|
unreadable: 'Kon het blok niet lezen',
|
|
723
735
|
live: {
|