@sixb/app 0.2.4 → 0.2.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/assets/connector-icons/README.md +1 -0
- package/assets/connector-icons/ctm.png +0 -0
- package/dist/agent/activity-label.d.ts.map +1 -1
- package/dist/agent/agent-chat.d.ts +3 -1
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/agent-panel.d.ts.map +1 -1
- package/dist/agent/artifact-panel.d.ts +3 -1
- package/dist/agent/artifact-panel.d.ts.map +1 -1
- package/dist/agent/components/composer-settings.d.ts +1 -1
- package/dist/agent/components/composer-settings.d.ts.map +1 -1
- package/dist/agent/components/composer.d.ts +22 -5
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +1 -1
- package/dist/agent/components/context-meter.d.ts.map +1 -1
- package/dist/agent/components/conversation-panel.d.ts +5 -2
- package/dist/agent/components/conversation-panel.d.ts.map +1 -1
- package/dist/agent/components/message-parts.d.ts +2 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/message-view.d.ts.map +1 -1
- package/dist/agent/components/pending-messages.d.ts +20 -0
- package/dist/agent/components/pending-messages.d.ts.map +1 -0
- package/dist/agent/components/sandbox-recovery.d.ts +11 -2
- package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
- package/dist/agent/components/threads-button.d.ts +1 -1
- package/dist/agent/components/threads-button.d.ts.map +1 -1
- package/dist/agent/components/transcript.d.ts.map +1 -1
- package/dist/agent/conversation.d.ts +3 -6
- package/dist/agent/conversation.d.ts.map +1 -1
- package/dist/agent/delegation/interpret.d.ts +5 -0
- package/dist/agent/delegation/interpret.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/hooks/use-agent-conversation.d.ts +10 -4
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +68 -0
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +114 -0
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/inbox-handoff.d.ts +10 -0
- package/dist/agent/inbox-handoff.d.ts.map +1 -0
- package/dist/agent/live-run.d.ts +8 -1
- package/dist/agent/live-run.d.ts.map +1 -1
- package/dist/agent/search/interpret.d.ts +101 -0
- package/dist/agent/search/interpret.d.ts.map +1 -0
- package/dist/agent/search/search-tool-view.d.ts +10 -0
- package/dist/agent/search/search-tool-view.d.ts.map +1 -0
- package/dist/agent/thread-state.d.ts +26 -0
- package/dist/agent/thread-state.d.ts.map +1 -0
- package/dist/agent/tool-views/built-in.d.ts.map +1 -1
- package/dist/agent/tool-views/registry.d.ts +5 -6
- package/dist/agent/tool-views/registry.d.ts.map +1 -1
- package/dist/agent/types.d.ts +5 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/view-file/view-file-tool-view.d.ts +2 -1
- package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -1
- package/dist/artifacts/card-preview.d.ts.map +1 -1
- package/dist/artifacts/editor/block-handle.d.ts +20 -0
- package/dist/artifacts/editor/block-handle.d.ts.map +1 -0
- package/dist/artifacts/editor/blocks.d.ts +34 -0
- package/dist/artifacts/editor/blocks.d.ts.map +1 -0
- package/dist/artifacts/editor/callout-view.d.ts +7 -0
- package/dist/artifacts/editor/callout-view.d.ts.map +1 -0
- package/dist/artifacts/editor/document-editor.d.ts +30 -0
- package/dist/artifacts/editor/document-editor.d.ts.map +1 -0
- package/dist/artifacts/editor/figure-view.d.ts +12 -0
- package/dist/artifacts/editor/figure-view.d.ts.map +1 -0
- package/dist/artifacts/editor/find-blocks.d.ts +6 -0
- package/dist/artifacts/editor/find-blocks.d.ts.map +1 -0
- package/dist/artifacts/editor/markdown-document.d.ts +12 -0
- package/dist/artifacts/editor/markdown-document.d.ts.map +1 -0
- package/dist/artifacts/editor/messages.d.ts +4 -0
- package/dist/artifacts/editor/messages.d.ts.map +1 -0
- package/dist/artifacts/editor/schema.d.ts +21 -0
- package/dist/artifacts/editor/schema.d.ts.map +1 -0
- package/dist/artifacts/editor/selection-toolbar.d.ts +35 -0
- package/dist/artifacts/editor/selection-toolbar.d.ts.map +1 -0
- package/dist/artifacts/editor/slash-menu.d.ts +43 -0
- package/dist/artifacts/editor/slash-menu.d.ts.map +1 -0
- package/dist/artifacts/editor/upload.d.ts +12 -0
- package/dist/artifacts/editor/upload.d.ts.map +1 -0
- package/dist/artifacts/file-source.d.ts +5 -0
- package/dist/artifacts/file-source.d.ts.map +1 -1
- package/dist/artifacts/frame-editor/bundle.d.ts +7 -0
- package/dist/artifacts/frame-editor/bundle.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/commands.d.ts +93 -0
- package/dist/artifacts/frame-editor/commands.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/entry.d.ts +2 -0
- package/dist/artifacts/frame-editor/entry.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/frame.d.ts +5 -0
- package/dist/artifacts/frame-editor/frame.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/keys.d.ts +8 -0
- package/dist/artifacts/frame-editor/keys.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/protocol.d.ts +186 -0
- package/dist/artifacts/frame-editor/protocol.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/schema.d.ts +34 -0
- package/dist/artifacts/frame-editor/schema.d.ts.map +1 -0
- package/dist/artifacts/frame-editor/style.d.ts +2 -0
- package/dist/artifacts/frame-editor/style.d.ts.map +1 -0
- package/dist/artifacts/frame.d.ts +2 -2
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/artifacts/live/boards.d.ts +2 -0
- package/dist/artifacts/live/boards.d.ts.map +1 -1
- package/dist/artifacts/live/document.d.ts +32 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/header.d.ts +4 -4
- package/dist/artifacts/live/header.d.ts.map +1 -1
- package/dist/artifacts/live/presence.d.ts.map +1 -1
- package/dist/artifacts/live/session.d.ts +2 -0
- package/dist/artifacts/live/session.d.ts.map +1 -1
- package/dist/artifacts/live/view.d.ts +4 -3
- package/dist/artifacts/live/view.d.ts.map +1 -1
- package/dist/artifacts/messages.d.ts +226 -2
- package/dist/artifacts/messages.d.ts.map +1 -1
- package/dist/artifacts/pdf.d.ts +8 -0
- package/dist/artifacts/pdf.d.ts.map +1 -0
- package/dist/artifacts/queries.d.ts +80 -0
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/references/references.d.ts +3 -3
- package/dist/artifacts/references/references.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts +4 -2
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comments.d.ts +2 -1
- package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -1
- package/dist/artifacts/renderers/designed-document.d.ts +28 -0
- package/dist/artifacts/renderers/designed-document.d.ts.map +1 -0
- package/dist/artifacts/renderers/document-tree.d.ts +2 -0
- package/dist/artifacts/renderers/document-tree.d.ts.map +1 -1
- package/dist/artifacts/renderers/document.d.ts +9 -1
- package/dist/artifacts/renderers/document.d.ts.map +1 -1
- package/dist/artifacts/renderers/live-frame.d.ts +145 -0
- package/dist/artifacts/renderers/live-frame.d.ts.map +1 -0
- package/dist/artifacts/renderers/page-editor.d.ts +16 -0
- package/dist/artifacts/renderers/page-editor.d.ts.map +1 -0
- package/dist/artifacts/renderers/page.d.ts +10 -1
- package/dist/artifacts/renderers/page.d.ts.map +1 -1
- package/dist/artifacts/viewer.d.ts.map +1 -1
- package/dist/{chunk-kymx9y5e.js → chunk-4fex83k2.js} +10874 -4690
- package/dist/chunk-4fex83k2.js.map +239 -0
- package/dist/{chunk-yrcm1pbg.js → chunk-4wm09prf.js} +491 -2128
- package/dist/chunk-4wm09prf.js.map +27 -0
- package/dist/{chunk-pxd07kvx.js → chunk-5sgac68y.js} +1 -1
- package/dist/{chunk-970s5nkn.js → chunk-69qgh20f.js} +1 -1
- package/dist/chunk-y51c4tsz.js +11 -0
- package/dist/chunk-y51c4tsz.js.map +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +5 -5
- package/dist/pages/console/data/messages.d.ts +6 -0
- package/dist/pages/console/data/messages.d.ts.map +1 -1
- package/dist/pages/console/data/shared.d.ts.map +1 -1
- package/dist/pages.js +12 -5
- package/dist/pages.js.map +6 -6
- package/dist/shell/search-command.d.ts.map +1 -1
- package/package.json +22 -5
- package/src/agent/activity-label.ts +3 -0
- package/src/agent/agent-chat.tsx +56 -37
- package/src/agent/agent-execution-trace.tsx +2 -2
- package/src/agent/agent-panel.tsx +6 -4
- package/src/agent/agent.css +254 -0
- package/src/agent/artifact-panel.tsx +77 -22
- package/src/agent/components/composer-settings.tsx +20 -10
- package/src/agent/components/composer.tsx +342 -104
- package/src/agent/components/context-meter.tsx +7 -3
- package/src/agent/components/conversation-panel.tsx +69 -29
- package/src/agent/components/message-parts.tsx +367 -59
- package/src/agent/components/message-view.tsx +12 -2
- package/src/agent/components/pending-messages.tsx +338 -0
- package/src/agent/components/sandbox-recovery.tsx +36 -17
- package/src/agent/components/threads-button.tsx +3 -2
- package/src/agent/components/transcript.tsx +63 -34
- package/src/agent/conversation.ts +203 -54
- package/src/agent/delegation/interpret.ts +31 -7
- package/src/agent/hooks/use-agent-conversation.ts +348 -100
- package/src/agent/hooks/use-thread-stream.ts +10 -0
- package/src/agent/i18n/en.ts +87 -11
- package/src/agent/i18n/fr.ts +83 -12
- package/src/agent/inbox-handoff.ts +47 -0
- package/src/agent/live-run.ts +23 -2
- package/src/agent/react-router.tsx +2 -2
- package/src/agent/search/interpret.ts +367 -0
- package/src/agent/search/search-tool-view.tsx +235 -0
- package/src/agent/thread-state.ts +114 -0
- package/src/agent/tool-views/built-in.tsx +16 -0
- package/src/agent/tool-views/registry.tsx +28 -2
- package/src/agent/types.ts +7 -0
- package/src/agent/view-file/view-file-tool-view.tsx +33 -19
- package/src/artifacts/artifacts.css +398 -0
- package/src/artifacts/card-preview.tsx +6 -1
- package/src/artifacts/editor/block-handle.tsx +278 -0
- package/src/artifacts/editor/blocks.ts +216 -0
- package/src/artifacts/editor/callout-view.tsx +31 -0
- package/src/artifacts/editor/document-editor.tsx +484 -0
- package/src/artifacts/editor/figure-view.tsx +66 -0
- package/src/artifacts/editor/find-blocks.ts +19 -0
- package/src/artifacts/editor/markdown-document.tsx +72 -0
- package/src/artifacts/editor/messages.ts +4 -0
- package/src/artifacts/editor/schema.ts +159 -0
- package/src/artifacts/editor/selection-toolbar.tsx +364 -0
- package/src/artifacts/editor/slash-menu.tsx +251 -0
- package/src/artifacts/editor/upload.ts +40 -0
- package/src/artifacts/file-source.ts +11 -0
- package/src/artifacts/frame-editor/bundle.ts +8 -0
- package/src/artifacts/frame-editor/commands.ts +565 -0
- package/src/artifacts/frame-editor/entry.ts +6 -0
- package/src/artifacts/frame-editor/frame.ts +847 -0
- package/src/artifacts/frame-editor/generated/editor.txt +149 -0
- package/src/artifacts/frame-editor/generated.d.ts +5 -0
- package/src/artifacts/frame-editor/keys.ts +323 -0
- package/src/artifacts/frame-editor/protocol.ts +151 -0
- package/src/artifacts/frame-editor/schema.ts +293 -0
- package/src/artifacts/frame-editor/style.ts +58 -0
- package/src/artifacts/frame.tsx +11 -3
- package/src/artifacts/live/boards.ts +46 -3
- package/src/artifacts/live/document.ts +89 -0
- package/src/artifacts/live/header.tsx +9 -14
- package/src/artifacts/live/presence.ts +5 -1
- package/src/artifacts/live/session.ts +4 -2
- package/src/artifacts/live/view.ts +14 -8
- package/src/artifacts/messages.ts +138 -2
- package/src/artifacts/pdf.ts +50 -0
- package/src/artifacts/references/references.tsx +46 -11
- package/src/artifacts/renderers/canvas/board-editor.tsx +11 -144
- package/src/artifacts/renderers/canvas/comment-pins.tsx +5 -0
- package/src/artifacts/renderers/canvas/comments-panel.tsx +58 -1
- package/src/artifacts/renderers/canvas/comments.ts +8 -4
- package/src/artifacts/renderers/designed-document.tsx +277 -0
- package/src/artifacts/renderers/document-tree.ts +9 -0
- package/src/artifacts/renderers/document.tsx +13 -102
- package/src/artifacts/renderers/live-frame.ts +163 -0
- package/src/artifacts/renderers/page-editor.tsx +613 -0
- package/src/artifacts/renderers/page.tsx +21 -4
- package/src/artifacts/viewer.tsx +87 -41
- package/src/index.ts +6 -0
- package/src/pages/console/data/messages.ts +6 -0
- package/src/pages/console/data/projections.tsx +4 -0
- package/src/pages/console/data/shared.tsx +1 -0
- package/src/pages/console/ontology/lineage/trail.tsx +3 -0
- package/src/shell/search-command.tsx +2 -0
- package/dist/chunk-kymx9y5e.js.map +0 -211
- package/dist/chunk-yrcm1pbg.js.map +0 -34
- /package/dist/{chunk-pxd07kvx.js.map → chunk-5sgac68y.js.map} +0 -0
- /package/dist/{chunk-970s5nkn.js.map → chunk-69qgh20f.js.map} +0 -0
package/src/agent/i18n/en.ts
CHANGED
|
@@ -50,7 +50,7 @@ export const en = {
|
|
|
50
50
|
sendFailed: "Couldn't send your message. Please try again.",
|
|
51
51
|
busy: "An answer is already in progress. Send yours when it finishes.",
|
|
52
52
|
busyOther: "Someone else's message is being answered. Send yours when it finishes.",
|
|
53
|
-
sandboxUnavailable: "
|
|
53
|
+
sandboxUnavailable: "Choose how the agent goes on before sending another message.",
|
|
54
54
|
computerUnavailable:
|
|
55
55
|
"This computer can't run the agent right now. Try again, or choose Cloud below.",
|
|
56
56
|
retryFailed: "Couldn't retry this answer. Try again.",
|
|
@@ -80,6 +80,20 @@ export const en = {
|
|
|
80
80
|
add: "Add files and more",
|
|
81
81
|
mention: "Mention a record",
|
|
82
82
|
commands: "Commands",
|
|
83
|
+
/** The messages waiting beside a running turn. */
|
|
84
|
+
steerPending: "Adds to this answer",
|
|
85
|
+
queuePending: "Sent once this answer ends",
|
|
86
|
+
sendNowPending: "Sends now",
|
|
87
|
+
waitingFile: "A file",
|
|
88
|
+
steer: "Add to this answer",
|
|
89
|
+
queue: "Send once this answer ends",
|
|
90
|
+
sendNow: "Stop this answer and send now",
|
|
91
|
+
withdraw: "Withdraw this message",
|
|
92
|
+
messageActions: "Change this message",
|
|
93
|
+
changeFailed: "Couldn't change this message. Try again.",
|
|
94
|
+
withdrawFailed: "Couldn't withdraw this message. Try again.",
|
|
95
|
+
notYourAnswer:
|
|
96
|
+
"Only the person who asked for this answer can change or stop it. Yours goes after it.",
|
|
83
97
|
},
|
|
84
98
|
/** Slash commands, typed as the whole message: `/opus`, `/ask`. */
|
|
85
99
|
commands: {
|
|
@@ -307,6 +321,7 @@ export const en = {
|
|
|
307
321
|
messageAgentFailed: (key: string) => `Could not message ${key}`,
|
|
308
322
|
reasoning: "Reasoning",
|
|
309
323
|
steps: (steps: number) => count(steps, "step"),
|
|
324
|
+
latest: "Latest",
|
|
310
325
|
searchFailedHint: "Web search failed. See work details.",
|
|
311
326
|
noSources: "No sources found.",
|
|
312
327
|
running: "running",
|
|
@@ -541,6 +556,63 @@ export const en = {
|
|
|
541
556
|
lines: (start: number, end: number) => `lines ${start}–${end}`,
|
|
542
557
|
moreAvailable: (range: string) => `${range} · more available`,
|
|
543
558
|
},
|
|
559
|
+
/**
|
|
560
|
+
* The glob and grep tools: files found by name, and text searched for in them. A search reads
|
|
561
|
+
* as the shell's ("Searched files"), however it ran.
|
|
562
|
+
*/
|
|
563
|
+
search: {
|
|
564
|
+
found: (files: number) => (files === 0 ? "No files found" : `Found ${count(files, "file")}`),
|
|
565
|
+
/** More files match than the ones listed. */
|
|
566
|
+
foundMore: (files: number) => `Found ${number(files)}+ files`,
|
|
567
|
+
looked: "Looked for files",
|
|
568
|
+
looking: "Looking for files",
|
|
569
|
+
lookFailed: "Couldn't look for files",
|
|
570
|
+
/** `term` is the pattern, when it reads as words. */
|
|
571
|
+
searchedFor: (term: string) => `Searched for “${term}”`,
|
|
572
|
+
searched: "Searched files",
|
|
573
|
+
searching: "Searching files",
|
|
574
|
+
searchFailed: (term?: string) =>
|
|
575
|
+
term ? `Couldn't search for “${term}”` : "Couldn't search files",
|
|
576
|
+
/** A search in the user's memory, or in the project's when `project`. */
|
|
577
|
+
memory: {
|
|
578
|
+
title: (project: boolean): string =>
|
|
579
|
+
project ? "Searched project memory" : "Searched memory",
|
|
580
|
+
running: (project: boolean): string =>
|
|
581
|
+
project ? "Searching project memory" : "Searching memory",
|
|
582
|
+
failed: (project: boolean): string =>
|
|
583
|
+
project ? "Couldn't search project memory" : "Couldn't search memory",
|
|
584
|
+
},
|
|
585
|
+
/** A search in the Agent's guides, or in one of them when it has a `name`. */
|
|
586
|
+
guide: {
|
|
587
|
+
title: (name: string) => (name ? `Searched the ${name} guide` : "Searched the guides"),
|
|
588
|
+
running: (name: string) => (name ? `Searching the ${name} guide` : "Searching the guides"),
|
|
589
|
+
failed: (name: string) =>
|
|
590
|
+
name ? `Couldn't search the ${name} guide` : "Couldn't search the guides",
|
|
591
|
+
},
|
|
592
|
+
ontology: {
|
|
593
|
+
title: "Searched the ontology",
|
|
594
|
+
running: "Searching the ontology",
|
|
595
|
+
failed: "Couldn't search the ontology",
|
|
596
|
+
},
|
|
597
|
+
term: (term: string) => `“${term}”`,
|
|
598
|
+
files: (files: number) => (files === 0 ? "no files" : count(files, "file")),
|
|
599
|
+
moreFiles: (files: number) => `${number(files)}+ files`,
|
|
600
|
+
matches: (matches: number, files: number) =>
|
|
601
|
+
`${count(matches, "match", "matches")} in ${count(files, "file")}`,
|
|
602
|
+
moreMatches: (matches: number) => `${number(matches)}+ matches`,
|
|
603
|
+
noMatches: "no matches",
|
|
604
|
+
/** Under a file's lines, the ones it holds past them. */
|
|
605
|
+
moreInFile: (matches: number) => `${count(matches, "more match", "more matches")} in this file`,
|
|
606
|
+
noFiles: "No file matches this search.",
|
|
607
|
+
noLines: "No line matches this search.",
|
|
608
|
+
truncatedFiles: (files: number) => `Only the first ${number(files)} files are listed.`,
|
|
609
|
+
truncatedMatches: (lines: number) =>
|
|
610
|
+
`Only the first ${number(lines)} matching lines are shown. More files match.`,
|
|
611
|
+
incomplete: "The search stopped before it looked everywhere, so some results may be missing.",
|
|
612
|
+
error: "The search could not run.",
|
|
613
|
+
/** Before the folder a search looked in. */
|
|
614
|
+
in: (path: string) => `in ${path}`,
|
|
615
|
+
},
|
|
544
616
|
/** Headlines of the agent's shell commands: past tense when done, progressive while running. */
|
|
545
617
|
bash: {
|
|
546
618
|
preparing: "Preparing a command",
|
|
@@ -838,18 +910,22 @@ export const en = {
|
|
|
838
910
|
saved: (project: boolean): string => (project ? "Saved to project memory" : "Saved to memory"),
|
|
839
911
|
},
|
|
840
912
|
sandbox: {
|
|
841
|
-
title: "
|
|
842
|
-
description:
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
confirmTitle: "Start with a fresh sandbox?",
|
|
913
|
+
title: "The agent was interrupted",
|
|
914
|
+
description: "Its work stopped before it could be saved.",
|
|
915
|
+
recreateFailed: "Couldn't start over. Reload the page and try again.",
|
|
916
|
+
recreating: "Starting over…",
|
|
917
|
+
startFresh: "Start over without the files",
|
|
918
|
+
confirmTitle: "Start over without the files?",
|
|
848
919
|
confirmDescription:
|
|
849
|
-
"The
|
|
920
|
+
"The agent will go on without the files it made in this conversation. Your messages and published attachments stay.",
|
|
850
921
|
cancel: "Cancel",
|
|
851
|
-
create: "
|
|
852
|
-
ownerOnly: (owner: string) => `Only ${owner} can
|
|
922
|
+
create: "Start over",
|
|
923
|
+
ownerOnly: (owner: string) => `Only ${owner} can choose how this conversation goes on.`,
|
|
924
|
+
resume: "Pick up where it left off",
|
|
925
|
+
resuming: "Picking up…",
|
|
926
|
+
resumeHint: "Its files are kept, but its last change may be unfinished.",
|
|
927
|
+
resumeFailed:
|
|
928
|
+
"Couldn't pick up where it left off. Reload the page and try again, or start over without the files.",
|
|
853
929
|
},
|
|
854
930
|
/** A command the agent runs in the background, as its card and its calls read. */
|
|
855
931
|
background: {
|
package/src/agent/i18n/fr.ts
CHANGED
|
@@ -44,8 +44,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
44
44
|
"L’agent répond au message de quelqu’un d’autre. Envoyez le vôtre quand il aura fini.",
|
|
45
45
|
computerUnavailable:
|
|
46
46
|
"Cet ordinateur ne peut pas exécuter l’agent pour le moment. Réessayez, ou choisissez Cloud ci-dessous.",
|
|
47
|
-
sandboxUnavailable:
|
|
48
|
-
"L’environnement de cette conversation doit être récupéré avant une nouvelle réponse.",
|
|
47
|
+
sandboxUnavailable: "Choisissez comment l’agent continue avant d’envoyer un autre message.",
|
|
49
48
|
retryFailed: "Impossible de relancer cette réponse. Réessayez.",
|
|
50
49
|
stopFailed: "Impossible d’arrêter cette réponse. Réessayez.",
|
|
51
50
|
removed: "Vous ne participez plus à ce fil.",
|
|
@@ -75,6 +74,20 @@ export const fr: Translation<AgentMessages> = {
|
|
|
75
74
|
add: "Ajouter des fichiers et plus",
|
|
76
75
|
mention: "Mentionner un enregistrement",
|
|
77
76
|
commands: "Commandes",
|
|
77
|
+
/** The messages waiting beside a running turn. */
|
|
78
|
+
steerPending: "S’ajoute à cette réponse",
|
|
79
|
+
queuePending: "Envoyé à la fin de cette réponse",
|
|
80
|
+
sendNowPending: "Envoyé maintenant",
|
|
81
|
+
waitingFile: "Un fichier",
|
|
82
|
+
steer: "Ajouter à cette réponse",
|
|
83
|
+
queue: "Envoyer à la fin de cette réponse",
|
|
84
|
+
sendNow: "Arrêter cette réponse et envoyer",
|
|
85
|
+
withdraw: "Retirer ce message",
|
|
86
|
+
messageActions: "Modifier ce message",
|
|
87
|
+
changeFailed: "Impossible de modifier ce message. Réessayez.",
|
|
88
|
+
withdrawFailed: "Impossible de retirer ce message. Réessayez.",
|
|
89
|
+
notYourAnswer:
|
|
90
|
+
"Seule la personne qui a demandé cette réponse peut la modifier ou l’arrêter. Le vôtre partira après.",
|
|
78
91
|
},
|
|
79
92
|
commands: {
|
|
80
93
|
list: "Commandes",
|
|
@@ -288,6 +301,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
288
301
|
messageAgentFailed: (key) => `Impossible d’envoyer un message à ${key}`,
|
|
289
302
|
reasoning: "Raisonnement",
|
|
290
303
|
steps: (steps) => count(steps, "étape"),
|
|
304
|
+
latest: "Dernières étapes",
|
|
291
305
|
searchFailedHint: "La recherche web a échoué. Voir le détail du travail.",
|
|
292
306
|
noSources: "Aucune source trouvée.",
|
|
293
307
|
running: "en cours",
|
|
@@ -509,6 +523,59 @@ export const fr: Translation<AgentMessages> = {
|
|
|
509
523
|
lines: (start, end) => `lignes ${number(start)} à ${number(end)}`,
|
|
510
524
|
moreAvailable: (range) => `${range} · suite disponible`,
|
|
511
525
|
},
|
|
526
|
+
search: {
|
|
527
|
+
found: (files) =>
|
|
528
|
+
files === 0 ? "Aucun fichier trouvé" : count(files, "fichier trouvé", "fichiers trouvés"),
|
|
529
|
+
foundMore: (files) => `Plus de ${number(files)} fichiers trouvés`,
|
|
530
|
+
looked: "Fichiers recherchés",
|
|
531
|
+
looking: "Recherche de fichiers",
|
|
532
|
+
lookFailed: "Impossible de rechercher des fichiers",
|
|
533
|
+
searchedFor: (term) => `Recherche de ${quoted(term)}`,
|
|
534
|
+
searched: "Fichiers parcourus",
|
|
535
|
+
searching: "Recherche dans les fichiers",
|
|
536
|
+
searchFailed: (term) =>
|
|
537
|
+
term ? `Impossible de rechercher ${quoted(term)}` : "Impossible de parcourir les fichiers",
|
|
538
|
+
memory: {
|
|
539
|
+
title: (project) => (project ? "Mémoire du projet parcourue" : "Mémoire parcourue"),
|
|
540
|
+
running: (project) =>
|
|
541
|
+
project ? "Recherche dans la mémoire du projet" : "Recherche dans la mémoire",
|
|
542
|
+
failed: (project) =>
|
|
543
|
+
project
|
|
544
|
+
? "Impossible de parcourir la mémoire du projet"
|
|
545
|
+
: "Impossible de parcourir la mémoire",
|
|
546
|
+
},
|
|
547
|
+
guide: {
|
|
548
|
+
title: (name) => (name ? `Guide ${quoted(name)} parcouru` : "Guides parcourus"),
|
|
549
|
+
running: (name) =>
|
|
550
|
+
name ? `Recherche dans le guide ${quoted(name)}` : "Recherche dans les guides",
|
|
551
|
+
failed: (name) =>
|
|
552
|
+
name
|
|
553
|
+
? `Impossible de parcourir le guide ${quoted(name)}`
|
|
554
|
+
: "Impossible de parcourir les guides",
|
|
555
|
+
},
|
|
556
|
+
ontology: {
|
|
557
|
+
title: "Ontologie parcourue",
|
|
558
|
+
running: "Recherche dans l’ontologie",
|
|
559
|
+
failed: "Impossible de parcourir l’ontologie",
|
|
560
|
+
},
|
|
561
|
+
term: (term) => quoted(term),
|
|
562
|
+
files: (files) => (files === 0 ? "aucun fichier" : count(files, "fichier")),
|
|
563
|
+
moreFiles: (files) => `plus de ${number(files)} fichiers`,
|
|
564
|
+
matches: (matches, files) => `${count(matches, "occurrence")} dans ${count(files, "fichier")}`,
|
|
565
|
+
moreMatches: (matches) => `plus de ${number(matches)} occurrences`,
|
|
566
|
+
noMatches: "aucune occurrence",
|
|
567
|
+
moreInFile: (matches) =>
|
|
568
|
+
`${count(matches, "autre occurrence", "autres occurrences")} dans ce fichier`,
|
|
569
|
+
noFiles: "Aucun fichier ne correspond à cette recherche.",
|
|
570
|
+
noLines: "Aucune ligne ne correspond à cette recherche.",
|
|
571
|
+
truncatedFiles: (files) => `Seuls les ${number(files)} premiers fichiers sont listés.`,
|
|
572
|
+
truncatedMatches: (lines) =>
|
|
573
|
+
`Seules les ${number(lines)} premières lignes trouvées sont affichées. D’autres fichiers correspondent.`,
|
|
574
|
+
incomplete:
|
|
575
|
+
"La recherche s’est arrêtée avant d’avoir tout parcouru : certains résultats peuvent manquer.",
|
|
576
|
+
error: "La recherche n’a pas pu s’exécuter.",
|
|
577
|
+
in: (path) => `dans ${path}`,
|
|
578
|
+
},
|
|
512
579
|
bash: {
|
|
513
580
|
preparing: "Préparation d’une commande",
|
|
514
581
|
timedOut: (duration) => `délai de ${duration} dépassé`,
|
|
@@ -876,19 +943,23 @@ export const fr: Translation<AgentMessages> = {
|
|
|
876
943
|
project ? "Enregistré dans la mémoire du projet" : "Enregistré en mémoire",
|
|
877
944
|
},
|
|
878
945
|
sandbox: {
|
|
879
|
-
title: "
|
|
880
|
-
description:
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
confirmTitle: "Repartir d’un nouvel environnement ?",
|
|
946
|
+
title: "L’agent a été interrompu",
|
|
947
|
+
description: "Son travail s’est arrêté avant d’être enregistré.",
|
|
948
|
+
recreateFailed: "Impossible de repartir de zéro. Rechargez la page et réessayez.",
|
|
949
|
+
recreating: "Préparation…",
|
|
950
|
+
startFresh: "Repartir sans les fichiers",
|
|
951
|
+
confirmTitle: "Repartir sans les fichiers ?",
|
|
886
952
|
confirmDescription:
|
|
887
|
-
"
|
|
953
|
+
"L’agent continuera sans les fichiers créés dans cette conversation. Vos messages et les pièces jointes publiées restent disponibles.",
|
|
888
954
|
cancel: "Annuler",
|
|
889
|
-
create: "
|
|
955
|
+
create: "Repartir de zéro",
|
|
890
956
|
ownerOnly: (owner) =>
|
|
891
|
-
`${owner} est la seule personne à pouvoir
|
|
957
|
+
`${owner} est la seule personne à pouvoir choisir comment cette conversation continue.`,
|
|
958
|
+
resume: "Reprendre où il s’était arrêté",
|
|
959
|
+
resuming: "Reprise…",
|
|
960
|
+
resumeHint: "Ses fichiers sont conservés, mais sa dernière modification peut être inachevée.",
|
|
961
|
+
resumeFailed:
|
|
962
|
+
"Impossible de reprendre où il s’était arrêté. Rechargez la page et réessayez, ou repartez sans les fichiers.",
|
|
892
963
|
},
|
|
893
964
|
background: {
|
|
894
965
|
card: (command) => `Commande en arrière-plan : ${command}`,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// A message the running turn reads leaves the tray for its place in the conversation. The tray's
|
|
2
|
+
// line folds away as the conversation's copy rises from where the line was, so the message seems
|
|
3
|
+
// to move instead of vanishing in one place and appearing in another.
|
|
4
|
+
|
|
5
|
+
/** Marks a tray line's text with the key its message will have in the conversation. */
|
|
6
|
+
export const TRAY_MESSAGE_ATTRIBUTE = "data-tray-message"
|
|
7
|
+
|
|
8
|
+
/** The key a tray message has in the conversation once read: its saved message's own. */
|
|
9
|
+
export function trayMessageKey(messageId: string): string {
|
|
10
|
+
return `message:${messageId}`
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** As the rest of the agent's motion: quick to start, gentle to land. */
|
|
14
|
+
const EASING = "cubic-bezier(0.32, 0.72, 0, 1)"
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Bring `element`, the conversation's copy of the message keyed `key`, into place: from its tray
|
|
18
|
+
* line when the tray still shows it, or by a short fade where the reader never saw it there.
|
|
19
|
+
*/
|
|
20
|
+
export function riseFromTray(element: HTMLElement, key: string): void {
|
|
21
|
+
if (typeof element.animate !== "function") return
|
|
22
|
+
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return
|
|
23
|
+
|
|
24
|
+
const line = document.querySelector(`[${TRAY_MESSAGE_ATTRIBUTE}="${CSS.escape(key)}"]`)
|
|
25
|
+
if (!line) {
|
|
26
|
+
element.animate(
|
|
27
|
+
[
|
|
28
|
+
{ opacity: 0, transform: "translateY(6px)" },
|
|
29
|
+
{ opacity: 1, transform: "none" },
|
|
30
|
+
],
|
|
31
|
+
{ duration: 240, easing: EASING }
|
|
32
|
+
)
|
|
33
|
+
return
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Only the height: the line's text starts at the left, the conversation's copy at the right.
|
|
37
|
+
const from = line.getBoundingClientRect()
|
|
38
|
+
const to = element.getBoundingClientRect()
|
|
39
|
+
const rise = from.top + from.height / 2 - (to.top + to.height / 2)
|
|
40
|
+
element.animate(
|
|
41
|
+
[
|
|
42
|
+
{ opacity: 0.4, transform: `translateY(${rise}px)` },
|
|
43
|
+
{ opacity: 1, transform: "none" },
|
|
44
|
+
],
|
|
45
|
+
{ duration: 420, easing: EASING }
|
|
46
|
+
)
|
|
47
|
+
}
|
package/src/agent/live-run.ts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
AgentInboxReadMessage,
|
|
3
|
+
AgentRunFailure,
|
|
4
|
+
AgentRunStreamEvent,
|
|
5
|
+
ModelUiChunk,
|
|
6
|
+
} from "@sixb/client"
|
|
2
7
|
import type { NormalizedPart, NormalizedTool } from "./parts"
|
|
3
8
|
import type { AgentRunStatus } from "./types"
|
|
4
9
|
|
|
10
|
+
/** Messages the turn read from its inbox, before the part at `at`: where the thread will hold them. */
|
|
11
|
+
export interface LiveInboxRead {
|
|
12
|
+
readonly at: number
|
|
13
|
+
readonly messages: readonly AgentInboxReadMessage[]
|
|
14
|
+
}
|
|
15
|
+
|
|
5
16
|
export interface LiveRunState {
|
|
6
17
|
/** The run this state belongs to, or null when idle. */
|
|
7
18
|
readonly runId: string | null
|
|
@@ -19,6 +30,8 @@ export interface LiveRunState {
|
|
|
19
30
|
* rendering — the view consumes `parts` directly.
|
|
20
31
|
*/
|
|
21
32
|
readonly partKeys: readonly string[]
|
|
33
|
+
/** What the turn read from its inbox as it answered, in order. */
|
|
34
|
+
readonly inboxReads: readonly LiveInboxRead[]
|
|
22
35
|
/** Model step currently being streamed. Used to keep reused part ids ordered. */
|
|
23
36
|
readonly stepIndex: number
|
|
24
37
|
/** How many parts came before the current step: a step asked again drops the ones after. */
|
|
@@ -48,6 +61,7 @@ export function createLiveRunState(runId: string | null = null): LiveRunState {
|
|
|
48
61
|
contextFull: false,
|
|
49
62
|
parts: [],
|
|
50
63
|
partKeys: [],
|
|
64
|
+
inboxReads: [],
|
|
51
65
|
stepIndex: 0,
|
|
52
66
|
stepStart: 0,
|
|
53
67
|
finalizedMessageId: null,
|
|
@@ -99,6 +113,11 @@ function reduceEvent(state: LiveRunState, event: AgentRunStreamEvent): LiveRunSt
|
|
|
99
113
|
return { ...state, compacting: false, contextFull: false }
|
|
100
114
|
case "agent.ui.chunk":
|
|
101
115
|
return applyChunk(state, event.chunk)
|
|
116
|
+
case "agent.inbox.read":
|
|
117
|
+
return {
|
|
118
|
+
...state,
|
|
119
|
+
inboxReads: [...state.inboxReads, { at: state.parts.length, messages: event.messages }],
|
|
120
|
+
}
|
|
102
121
|
case "agent.message.finalized":
|
|
103
122
|
return { ...state, finalizedMessageId: event.messageId }
|
|
104
123
|
case "agent.run.finished":
|
|
@@ -135,12 +154,14 @@ function applyChunk(state: LiveRunState, chunk: ModelUiChunk): LiveRunState {
|
|
|
135
154
|
case "reasoning-end":
|
|
136
155
|
return reduceReasoning(state, chunk)
|
|
137
156
|
case "start-step":
|
|
138
|
-
// A step asked again drops what its first call streamed.
|
|
157
|
+
// A step asked again drops what its first call streamed. What the turn read before the step
|
|
158
|
+
// stays: the step reads it again.
|
|
139
159
|
if (chunk.retry) {
|
|
140
160
|
return {
|
|
141
161
|
...state,
|
|
142
162
|
parts: state.parts.slice(0, state.stepStart),
|
|
143
163
|
partKeys: state.partKeys.slice(0, state.stepStart),
|
|
164
|
+
inboxReads: state.inboxReads.filter((read) => read.at <= state.stepStart),
|
|
144
165
|
}
|
|
145
166
|
}
|
|
146
167
|
return { ...state, stepIndex: state.stepIndex + 1, stepStart: state.parts.length }
|
|
@@ -46,9 +46,9 @@ export function AgentChatPage({
|
|
|
46
46
|
// biome-ignore lint/correctness/useExhaustiveDependencies: the key stands for the parameters.
|
|
47
47
|
const artifactTarget = useMemo(() => artifactTargetFromSearch(searchParams), [searchKey])
|
|
48
48
|
const onArtifactTargetChange = useCallback(
|
|
49
|
-
(target: ArtifactTarget | null) => {
|
|
49
|
+
(target: ArtifactTarget | null, options?: { readonly replace?: boolean }) => {
|
|
50
50
|
setSearchParams((current) => withArtifactTarget(current, target), {
|
|
51
|
-
replace: target === null,
|
|
51
|
+
replace: options?.replace ?? target === null,
|
|
52
52
|
})
|
|
53
53
|
},
|
|
54
54
|
[setSearchParams]
|