@sixb/app 0.2.3 → 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/background/background-tool-row.d.ts.map +1 -1
- package/dist/agent/background/interpret.d.ts +1 -1
- package/dist/agent/background/interpret.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 +8 -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 +5 -0
- 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/agent-exchange.d.ts +16 -0
- package/dist/agent/delegation/agent-exchange.d.ts.map +1 -0
- package/dist/agent/delegation/child-card.d.ts +3 -3
- package/dist/agent/delegation/child-card.d.ts.map +1 -1
- package/dist/agent/delegation/child-parts.d.ts +1 -10
- package/dist/agent/delegation/child-parts.d.ts.map +1 -1
- package/dist/agent/delegation/child-work.d.ts.map +1 -1
- package/dist/agent/delegation/interpret.d.ts +9 -10
- package/dist/agent/delegation/interpret.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/file-edits/file-edit-tool-view.d.ts +10 -0
- package/dist/agent/file-edits/file-edit-tool-view.d.ts.map +1 -0
- package/dist/agent/file-edits/interpret.d.ts +25 -0
- package/dist/agent/file-edits/interpret.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +16 -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 +114 -5
- 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 +190 -8
- 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/message-agent/interpret.d.ts +2 -2
- package/dist/agent/message-agent/interpret.d.ts.map +1 -1
- package/dist/agent/publish-artifact/interpret.d.ts +1 -1
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
- package/dist/agent/questions/interpret.d.ts +31 -0
- package/dist/agent/questions/interpret.d.ts.map +1 -0
- package/dist/agent/questions/question-card.d.ts +16 -0
- package/dist/agent/questions/question-card.d.ts.map +1 -0
- package/dist/agent/questions/question-composer.d.ts +15 -0
- package/dist/agent/questions/question-composer.d.ts.map +1 -0
- package/dist/agent/read/interpret.d.ts +8 -1
- package/dist/agent/read/interpret.d.ts.map +1 -1
- package/dist/agent/read/read-tool-view.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/agent/waits.d.ts +14 -0
- package/dist/agent/waits.d.ts.map +1 -0
- package/dist/artifacts/card-preview.d.ts.map +1 -1
- package/dist/artifacts/edit-session.d.ts +11 -1
- package/dist/artifacts/edit-session.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 +278 -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 +11 -4
- package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board.d.ts +14 -2
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +4 -3
- package/dist/artifacts/renderers/canvas/canvas.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/canvas/controls.d.ts +15 -4
- package/dist/artifacts/renderers/canvas/controls.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/focus.d.ts +19 -5
- package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/gestures.d.ts +46 -0
- package/dist/artifacts/renderers/canvas/gestures.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-resize.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-resize.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts +93 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts +64 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/shown-size.d.ts +26 -0
- package/dist/artifacts/renderers/canvas/shown-size.d.ts.map +1 -0
- 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-001c4gnk.js → chunk-4fex83k2.js} +19965 -13027
- package/dist/chunk-4fex83k2.js.map +239 -0
- package/dist/{chunk-5crvhjp2.js → chunk-4wm09prf.js} +1633 -1999
- package/dist/chunk-4wm09prf.js.map +27 -0
- package/dist/{chunk-fwb9mxwm.js → chunk-5sgac68y.js} +1 -1
- package/dist/{chunk-kes4ygmz.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 +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -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 +9 -1
- package/src/agent/agent-chat.tsx +57 -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/background/background-tool-row.tsx +24 -10
- package/src/agent/background/interpret.ts +60 -51
- 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 +96 -37
- package/src/agent/components/message-parts.tsx +390 -64
- 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 +92 -45
- package/src/agent/conversation.ts +203 -54
- package/src/agent/delegation/agent-exchange.tsx +53 -0
- package/src/agent/delegation/child-card.tsx +6 -40
- package/src/agent/delegation/child-parts.tsx +1 -84
- package/src/agent/delegation/child-work.tsx +19 -5
- package/src/agent/delegation/interpret.ts +64 -61
- package/src/agent/delegation/model.ts +1 -1
- package/src/agent/file-edits/file-edit-tool-view.tsx +126 -0
- package/src/agent/file-edits/interpret.ts +120 -0
- package/src/agent/hooks/use-agent-conversation.ts +360 -92
- package/src/agent/hooks/use-thread-stream.ts +10 -0
- package/src/agent/i18n/en.ts +134 -16
- package/src/agent/i18n/fr.ts +122 -16
- package/src/agent/inbox-handoff.ts +47 -0
- package/src/agent/live-run.ts +23 -2
- package/src/agent/message-agent/interpret.ts +4 -3
- package/src/agent/publish-artifact/interpret.ts +14 -5
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +2 -2
- package/src/agent/questions/interpret.ts +90 -0
- package/src/agent/questions/question-card.tsx +57 -0
- package/src/agent/questions/question-composer.tsx +257 -0
- package/src/agent/react-router.tsx +2 -2
- package/src/agent/read/interpret.ts +34 -1
- package/src/agent/read/read-tool-view.tsx +20 -4
- 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 +33 -6
- 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/agent/waits.ts +50 -0
- package/src/artifacts/artifacts.css +434 -0
- package/src/artifacts/card-preview.tsx +6 -1
- package/src/artifacts/edit-session.tsx +15 -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 +14 -5
- 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 +192 -2
- package/src/artifacts/pdf.ts +50 -0
- package/src/artifacts/references/references.tsx +46 -11
- package/src/artifacts/renderers/canvas/board-editor.tsx +44 -155
- package/src/artifacts/renderers/canvas/board.tsx +70 -8
- package/src/artifacts/renderers/canvas/canvas.tsx +66 -15
- 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/canvas/controls.tsx +64 -30
- package/src/artifacts/renderers/canvas/focus.tsx +200 -56
- package/src/artifacts/renderers/canvas/gestures.ts +265 -0
- package/src/artifacts/renderers/canvas/page-resize.tsx +542 -0
- package/src/artifacts/renderers/canvas/page-size-controls.tsx +193 -0
- package/src/artifacts/renderers/canvas/page-size.ts +218 -0
- package/src/artifacts/renderers/canvas/page-zoom.ts +280 -0
- package/src/artifacts/renderers/canvas/shown-size.ts +105 -0
- 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 +101 -41
- package/src/index.ts +8 -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-001c4gnk.js.map +0 -204
- package/dist/chunk-5crvhjp2.js.map +0 -28
- /package/dist/{chunk-fwb9mxwm.js.map → chunk-5sgac68y.js.map} +0 -0
- /package/dist/{chunk-kes4ygmz.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",
|
|
@@ -351,10 +366,8 @@ export const en = {
|
|
|
351
366
|
timeout: "Ran out of time",
|
|
352
367
|
unknown: "Delegated",
|
|
353
368
|
},
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
answer: "Agent answered",
|
|
357
|
-
answerHint: "Your next message answers it.",
|
|
369
|
+
/** A sub-agent's question its turn ended on while it held a call: the decision continued it. */
|
|
370
|
+
noAnswer: "It went on without an answer, once the approval was decided.",
|
|
358
371
|
close: "Close",
|
|
359
372
|
viewRequest: "See its request below",
|
|
360
373
|
stepsLater: "At work. Its steps show here once it finishes.",
|
|
@@ -386,6 +399,9 @@ export const en = {
|
|
|
386
399
|
heardFrom: (key: string) => `Heard back from ${key}`,
|
|
387
400
|
heardFromCount: (agents: number) => `Heard back from ${count(agents, "sub-agent")}`,
|
|
388
401
|
waitFailed: "Couldn't wait for the sub-agents",
|
|
402
|
+
stoppingAgent: (key: string) => `Stopping ${key}`,
|
|
403
|
+
stoppedAgent: (key: string) => `Stopped ${key}`,
|
|
404
|
+
stopAgentFailed: (key: string) => `Couldn't stop ${key}`,
|
|
389
405
|
askedAgent: (question: string) => `Asked the agent: ${question}`,
|
|
390
406
|
/** The reply's line: the sub-agents by name, and how they stand. */
|
|
391
407
|
line: {
|
|
@@ -466,6 +482,40 @@ export const en = {
|
|
|
466
482
|
failed: (name: string) => `Couldn't view ${name || "a file"}`,
|
|
467
483
|
open: (name: string) => `Open ${name}`,
|
|
468
484
|
},
|
|
485
|
+
/** The Agent's questions to the user, from its `ask` tool. */
|
|
486
|
+
questions: {
|
|
487
|
+
card: (count: number): string =>
|
|
488
|
+
count === 1 ? "The agent's question" : "The agent's questions",
|
|
489
|
+
asked: "Asked you",
|
|
490
|
+
/** For someone who reads the conversation but cannot answer in it. */
|
|
491
|
+
waiting: "Waiting for an answer",
|
|
492
|
+
running: "Asking you",
|
|
493
|
+
send: "Send answer",
|
|
494
|
+
sending: "Sending…",
|
|
495
|
+
pickAny: "Pick any",
|
|
496
|
+
typeAnswer: "Type an answer",
|
|
497
|
+
typeOther: "Or type another answer",
|
|
498
|
+
somethingElse: "Something else…",
|
|
499
|
+
next: "Next question",
|
|
500
|
+
back: "Previous question",
|
|
501
|
+
step: (step: number, total: number): string => `Question ${step} of ${total}`,
|
|
502
|
+
/** Close the question, to reply in the composer instead. */
|
|
503
|
+
dismiss: "Reply in chat",
|
|
504
|
+
},
|
|
505
|
+
/** The edit tool, for a change to part of a file (`name` may be empty). */
|
|
506
|
+
edit: {
|
|
507
|
+
title: (name: string) => `Edited ${name || "a file"}`,
|
|
508
|
+
running: (name: string) => `Editing ${name || "a file"}`,
|
|
509
|
+
failed: (name: string) => `Couldn't edit ${name || "a file"}`,
|
|
510
|
+
},
|
|
511
|
+
/** The write tool, for a file created or replaced whole (`name` may be empty). */
|
|
512
|
+
write: {
|
|
513
|
+
created: (name: string) => `Created ${name || "a file"}`,
|
|
514
|
+
replaced: (name: string) => `Rewrote ${name || "a file"}`,
|
|
515
|
+
running: (name: string) => `Writing ${name || "a file"}`,
|
|
516
|
+
failed: (name: string) => `Couldn't write ${name || "a file"}`,
|
|
517
|
+
lines: (lines: number) => count(lines, "line"),
|
|
518
|
+
},
|
|
469
519
|
/** The read tool, for a file (`name` may be empty), a skill reference, or a skill guide. */
|
|
470
520
|
read: {
|
|
471
521
|
file: {
|
|
@@ -484,6 +534,13 @@ export const en = {
|
|
|
484
534
|
failed: (name: string) => `Couldn't read the ${name} guide`,
|
|
485
535
|
},
|
|
486
536
|
/** A file of the user's memory, or of the project's when `project`. */
|
|
537
|
+
/** A folder the agent listed. */
|
|
538
|
+
directory: {
|
|
539
|
+
title: (name: string) => `Listed ${name || "a folder"}`,
|
|
540
|
+
running: (name: string) => `Listing ${name || "a folder"}`,
|
|
541
|
+
failed: (name: string) => `Couldn't list ${name || "a folder"}`,
|
|
542
|
+
},
|
|
543
|
+
entries: (entries: number) => count(entries, "entry", "entries"),
|
|
487
544
|
memory: {
|
|
488
545
|
title: (project: boolean): string => (project ? "Read project memory" : "Read memory"),
|
|
489
546
|
running: (project: boolean): string =>
|
|
@@ -499,6 +556,63 @@ export const en = {
|
|
|
499
556
|
lines: (start: number, end: number) => `lines ${start}–${end}`,
|
|
500
557
|
moreAvailable: (range: string) => `${range} · more available`,
|
|
501
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
|
+
},
|
|
502
616
|
/** Headlines of the agent's shell commands: past tense when done, progressive while running. */
|
|
503
617
|
bash: {
|
|
504
618
|
preparing: "Preparing a command",
|
|
@@ -776,7 +890,7 @@ export const en = {
|
|
|
776
890
|
publishing: (title: string) => `Publishing ${title || "an artifact"}`,
|
|
777
891
|
published: (title: string) => `Published ${title || "an artifact"}`,
|
|
778
892
|
publishFailed: (title: string) => `Couldn't publish ${title || "an artifact"}`,
|
|
779
|
-
/**
|
|
893
|
+
/** A `publish_artifact` call with an id, which changes an artifact's current version. */
|
|
780
894
|
updating: (title: string) => `Updating ${title || "an artifact"}`,
|
|
781
895
|
updated: (title: string) => `Updated ${title || "an artifact"}`,
|
|
782
896
|
updateFailed: (title: string) => `Couldn't update ${title || "an artifact"}`,
|
|
@@ -796,18 +910,22 @@ export const en = {
|
|
|
796
910
|
saved: (project: boolean): string => (project ? "Saved to project memory" : "Saved to memory"),
|
|
797
911
|
},
|
|
798
912
|
sandbox: {
|
|
799
|
-
title: "
|
|
800
|
-
description:
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
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?",
|
|
806
919
|
confirmDescription:
|
|
807
|
-
"The
|
|
920
|
+
"The agent will go on without the files it made in this conversation. Your messages and published attachments stay.",
|
|
808
921
|
cancel: "Cancel",
|
|
809
|
-
create: "
|
|
810
|
-
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.",
|
|
811
929
|
},
|
|
812
930
|
/** A command the agent runs in the background, as its card and its calls read. */
|
|
813
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",
|
|
@@ -334,10 +348,7 @@ export const fr: Translation<AgentMessages> = {
|
|
|
334
348
|
timeout: "Temps écoulé",
|
|
335
349
|
unknown: "Délégué",
|
|
336
350
|
},
|
|
337
|
-
|
|
338
|
-
asks: "A demandé",
|
|
339
|
-
answer: "L’agent a répondu",
|
|
340
|
-
answerHint: "Votre prochain message lui répond.",
|
|
351
|
+
noAnswer: "Il a continué sans réponse, une fois l’approbation décidée.",
|
|
341
352
|
close: "Fermer",
|
|
342
353
|
viewRequest: "Voir sa demande plus bas",
|
|
343
354
|
stepsLater: "En cours. Ses étapes s’afficheront ici une fois terminé.",
|
|
@@ -369,6 +380,9 @@ export const fr: Translation<AgentMessages> = {
|
|
|
369
380
|
heardFrom: (key) => `Réponse de ${key}`,
|
|
370
381
|
heardFromCount: (agents) => `Réponses de ${count(agents, "sous-agent")}`,
|
|
371
382
|
waitFailed: "Impossible d’attendre les sous-agents",
|
|
383
|
+
stoppingAgent: (key) => `Arrêt de ${key}`,
|
|
384
|
+
stoppedAgent: (key) => `${key} arrêté`,
|
|
385
|
+
stopAgentFailed: (key) => `Impossible d’arrêter ${key}`,
|
|
372
386
|
line: {
|
|
373
387
|
names: (names) =>
|
|
374
388
|
names.length <= 1
|
|
@@ -443,6 +457,35 @@ export const fr: Translation<AgentMessages> = {
|
|
|
443
457
|
name ? `Impossible de consulter ${name}` : "Impossible de consulter le fichier",
|
|
444
458
|
open: (name) => `Ouvrir ${name}`,
|
|
445
459
|
},
|
|
460
|
+
questions: {
|
|
461
|
+
card: (count) => (count === 1 ? "La question de l’agent" : "Les questions de l’agent"),
|
|
462
|
+
asked: "Vous a demandé",
|
|
463
|
+
waiting: "En attente d’une réponse",
|
|
464
|
+
running: "Vous pose une question",
|
|
465
|
+
send: "Envoyer la réponse",
|
|
466
|
+
sending: "Envoi…",
|
|
467
|
+
pickAny: "Plusieurs choix possibles",
|
|
468
|
+
typeAnswer: "Saisir une réponse",
|
|
469
|
+
typeOther: "Ou saisir une autre réponse",
|
|
470
|
+
somethingElse: "Autre chose…",
|
|
471
|
+
next: "Question suivante",
|
|
472
|
+
back: "Question précédente",
|
|
473
|
+
step: (step, total) => `Question ${step} sur ${total}`,
|
|
474
|
+
dismiss: "Répondre dans la conversation",
|
|
475
|
+
},
|
|
476
|
+
edit: {
|
|
477
|
+
title: (name) => (name ? `${name} modifié` : "Fichier modifié"),
|
|
478
|
+
running: (name) => (name ? `Modification de ${name}` : "Modification d’un fichier"),
|
|
479
|
+
failed: (name) =>
|
|
480
|
+
name ? `Impossible de modifier ${name}` : "Impossible de modifier le fichier",
|
|
481
|
+
},
|
|
482
|
+
write: {
|
|
483
|
+
created: (name) => (name ? `${name} créé` : "Fichier créé"),
|
|
484
|
+
replaced: (name) => (name ? `${name} réécrit` : "Fichier réécrit"),
|
|
485
|
+
running: (name) => (name ? `Écriture de ${name}` : "Écriture d’un fichier"),
|
|
486
|
+
failed: (name) => (name ? `Impossible d’écrire ${name}` : "Impossible d’écrire le fichier"),
|
|
487
|
+
lines: (lines) => count(lines, "ligne"),
|
|
488
|
+
},
|
|
446
489
|
read: {
|
|
447
490
|
file: {
|
|
448
491
|
title: (name) => (name ? `${name} lu` : "Fichier lu"),
|
|
@@ -459,6 +502,12 @@ export const fr: Translation<AgentMessages> = {
|
|
|
459
502
|
running: (name) => `Consultation du guide ${quoted(name)}`,
|
|
460
503
|
failed: (name) => `Impossible de lire le guide ${quoted(name)}`,
|
|
461
504
|
},
|
|
505
|
+
directory: {
|
|
506
|
+
title: (name) => (name ? `Contenu de ${name} listé` : "Dossier listé"),
|
|
507
|
+
running: (name) => (name ? `Liste du contenu de ${name}` : "Liste d’un dossier"),
|
|
508
|
+
failed: (name) => (name ? `Impossible de lister ${name}` : "Impossible de lister le dossier"),
|
|
509
|
+
},
|
|
510
|
+
entries: (entries) => count(entries, "élément"),
|
|
462
511
|
memory: {
|
|
463
512
|
title: (project) => (project ? "Mémoire du projet consultée" : "Mémoire consultée"),
|
|
464
513
|
running: (project) =>
|
|
@@ -474,6 +523,59 @@ export const fr: Translation<AgentMessages> = {
|
|
|
474
523
|
lines: (start, end) => `lignes ${number(start)} à ${number(end)}`,
|
|
475
524
|
moreAvailable: (range) => `${range} · suite disponible`,
|
|
476
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
|
+
},
|
|
477
579
|
bash: {
|
|
478
580
|
preparing: "Préparation d’une commande",
|
|
479
581
|
timedOut: (duration) => `délai de ${duration} dépassé`,
|
|
@@ -841,19 +943,23 @@ export const fr: Translation<AgentMessages> = {
|
|
|
841
943
|
project ? "Enregistré dans la mémoire du projet" : "Enregistré en mémoire",
|
|
842
944
|
},
|
|
843
945
|
sandbox: {
|
|
844
|
-
title: "
|
|
845
|
-
description:
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
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 ?",
|
|
851
952
|
confirmDescription:
|
|
852
|
-
"
|
|
953
|
+
"L’agent continuera sans les fichiers créés dans cette conversation. Vos messages et les pièces jointes publiées restent disponibles.",
|
|
853
954
|
cancel: "Annuler",
|
|
854
|
-
create: "
|
|
955
|
+
create: "Repartir de zéro",
|
|
855
956
|
ownerOnly: (owner) =>
|
|
856
|
-
`${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.",
|
|
857
963
|
},
|
|
858
964
|
background: {
|
|
859
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 }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AgentMessages } from "../i18n/en"
|
|
2
2
|
import { type NormalizedTool, toolResultValue } from "../parts"
|
|
3
|
+
import { waitsForChildren } from "../waits"
|
|
3
4
|
|
|
4
5
|
export interface MessageAgentDescription {
|
|
5
6
|
/** The row's title: what the Agent told which child, or that it could not. */
|
|
@@ -8,7 +9,7 @@ export interface MessageAgentDescription {
|
|
|
8
9
|
readonly running: string
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
/** A question a child waits on, as `
|
|
12
|
+
/** A question a child waits on, as `wait` returned it. */
|
|
12
13
|
export interface ChildQuestion {
|
|
13
14
|
readonly key: string
|
|
14
15
|
readonly text: string
|
|
@@ -42,9 +43,9 @@ export function describeMessageAgent(
|
|
|
42
43
|
return { title: messaging, running: messaging }
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
/** The questions a `
|
|
46
|
+
/** The questions a `wait` call returned: the children that wait on the Agent's answer. */
|
|
46
47
|
export function childQuestions(tool: NormalizedTool): readonly ChildQuestion[] {
|
|
47
|
-
if (tool
|
|
48
|
+
if (!waitsForChildren(tool) || tool.state !== "output-available") return []
|
|
48
49
|
|
|
49
50
|
const output = toolResultValue(tool.output)
|
|
50
51
|
if (!isRecord(output) || !Array.isArray(output.questions)) return []
|
|
@@ -3,8 +3,9 @@ import type { ArtifactKindName } from "../../artifacts/kind-icon"
|
|
|
3
3
|
import type { NormalizedPart, NormalizedTool } from "../parts"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Creating an artifact, and changing one: `
|
|
7
|
-
* `
|
|
6
|
+
* Creating an artifact, and changing one: `publish_artifact` with an id writes its current version.
|
|
7
|
+
* Threads from before hold `update_artifact`, which did that, and `publish_artifact_version`,
|
|
8
|
+
* which published the next version.
|
|
8
9
|
*/
|
|
9
10
|
const PUBLISH_TOOLS = new Set(["publish_artifact", "update_artifact", "publish_artifact_version"])
|
|
10
11
|
|
|
@@ -13,8 +14,16 @@ export function isPublishTool(toolName: string): boolean {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
/** Whether a publish call changed an artifact that was there before, rather than created one. */
|
|
16
|
-
export function
|
|
17
|
-
|
|
17
|
+
export function isUpdate(tool: Pick<NormalizedTool, "toolName" | "input">): boolean {
|
|
18
|
+
if (tool.toolName !== "publish_artifact") return isPublishTool(tool.toolName)
|
|
19
|
+
const input = tool.input
|
|
20
|
+
return (
|
|
21
|
+
typeof input === "object" &&
|
|
22
|
+
input !== null &&
|
|
23
|
+
"id" in input &&
|
|
24
|
+
typeof input.id === "string" &&
|
|
25
|
+
input.id.trim().startsWith("art_")
|
|
26
|
+
)
|
|
18
27
|
}
|
|
19
28
|
|
|
20
29
|
/** What one publish call published, read from its result. */
|
|
@@ -86,7 +95,7 @@ export function turnArtifacts(parts: readonly NormalizedPart[]): TurnArtifact[]
|
|
|
86
95
|
const published = publishedArtifact(part.tool)
|
|
87
96
|
if (!published) continue
|
|
88
97
|
const earlier = byId.get(published.artifactId)
|
|
89
|
-
const created = earlier?.created === true || part.tool
|
|
98
|
+
const created = earlier?.created === true || !isUpdate(part.tool)
|
|
90
99
|
if (!earlier || writtenAfter(published, earlier)) {
|
|
91
100
|
byId.set(published.artifactId, { ...published, created })
|
|
92
101
|
} else if (created !== earlier.created) {
|
|
@@ -3,7 +3,7 @@ import { useArtifactMessages } from "../../artifacts/messages"
|
|
|
3
3
|
import { ActivityStatusText } from "../components/activity-status"
|
|
4
4
|
import { useAgentMessages } from "../i18n"
|
|
5
5
|
import type { NormalizedTool } from "../parts"
|
|
6
|
-
import {
|
|
6
|
+
import { isUpdate, publishedArtifact, publishTitle } from "./interpret"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A publish in the work trace: what it published, with any warnings, or why it was refused. The
|
|
@@ -18,7 +18,7 @@ export function PublishArtifactToolView({ tool }: { tool: NormalizedTool }) {
|
|
|
18
18
|
const published = publishedArtifact(tool)
|
|
19
19
|
const running = tool.state === "input-streaming" || tool.state === "input-available"
|
|
20
20
|
const failed = tool.state === "output-error"
|
|
21
|
-
const update =
|
|
21
|
+
const update = isUpdate(tool)
|
|
22
22
|
const label = failed
|
|
23
23
|
? (update ? messages.updateFailed : messages.publishFailed)(title)
|
|
24
24
|
: running
|