@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.
Files changed (247) hide show
  1. package/assets/connector-icons/README.md +1 -0
  2. package/assets/connector-icons/ctm.png +0 -0
  3. package/dist/agent/activity-label.d.ts.map +1 -1
  4. package/dist/agent/agent-chat.d.ts +3 -1
  5. package/dist/agent/agent-chat.d.ts.map +1 -1
  6. package/dist/agent/agent-panel.d.ts.map +1 -1
  7. package/dist/agent/artifact-panel.d.ts +3 -1
  8. package/dist/agent/artifact-panel.d.ts.map +1 -1
  9. package/dist/agent/components/composer-settings.d.ts +1 -1
  10. package/dist/agent/components/composer-settings.d.ts.map +1 -1
  11. package/dist/agent/components/composer.d.ts +22 -5
  12. package/dist/agent/components/composer.d.ts.map +1 -1
  13. package/dist/agent/components/context-meter.d.ts +1 -1
  14. package/dist/agent/components/context-meter.d.ts.map +1 -1
  15. package/dist/agent/components/conversation-panel.d.ts +5 -2
  16. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  17. package/dist/agent/components/message-parts.d.ts +2 -1
  18. package/dist/agent/components/message-parts.d.ts.map +1 -1
  19. package/dist/agent/components/message-view.d.ts.map +1 -1
  20. package/dist/agent/components/pending-messages.d.ts +20 -0
  21. package/dist/agent/components/pending-messages.d.ts.map +1 -0
  22. package/dist/agent/components/sandbox-recovery.d.ts +11 -2
  23. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
  24. package/dist/agent/components/threads-button.d.ts +1 -1
  25. package/dist/agent/components/threads-button.d.ts.map +1 -1
  26. package/dist/agent/components/transcript.d.ts.map +1 -1
  27. package/dist/agent/conversation.d.ts +3 -6
  28. package/dist/agent/conversation.d.ts.map +1 -1
  29. package/dist/agent/delegation/interpret.d.ts +5 -0
  30. package/dist/agent/delegation/interpret.d.ts.map +1 -1
  31. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  32. package/dist/agent/hooks/use-agent-conversation.d.ts +10 -4
  33. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  34. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  35. package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
  36. package/dist/agent/i18n/en.d.ts +68 -0
  37. package/dist/agent/i18n/en.d.ts.map +1 -1
  38. package/dist/agent/i18n/fr.d.ts.map +1 -1
  39. package/dist/agent/i18n/index.d.ts +114 -0
  40. package/dist/agent/i18n/index.d.ts.map +1 -1
  41. package/dist/agent/inbox-handoff.d.ts +10 -0
  42. package/dist/agent/inbox-handoff.d.ts.map +1 -0
  43. package/dist/agent/live-run.d.ts +8 -1
  44. package/dist/agent/live-run.d.ts.map +1 -1
  45. package/dist/agent/search/interpret.d.ts +101 -0
  46. package/dist/agent/search/interpret.d.ts.map +1 -0
  47. package/dist/agent/search/search-tool-view.d.ts +10 -0
  48. package/dist/agent/search/search-tool-view.d.ts.map +1 -0
  49. package/dist/agent/thread-state.d.ts +26 -0
  50. package/dist/agent/thread-state.d.ts.map +1 -0
  51. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  52. package/dist/agent/tool-views/registry.d.ts +5 -6
  53. package/dist/agent/tool-views/registry.d.ts.map +1 -1
  54. package/dist/agent/types.d.ts +5 -1
  55. package/dist/agent/types.d.ts.map +1 -1
  56. package/dist/agent/view-file/view-file-tool-view.d.ts +2 -1
  57. package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -1
  58. package/dist/artifacts/card-preview.d.ts.map +1 -1
  59. package/dist/artifacts/editor/block-handle.d.ts +20 -0
  60. package/dist/artifacts/editor/block-handle.d.ts.map +1 -0
  61. package/dist/artifacts/editor/blocks.d.ts +34 -0
  62. package/dist/artifacts/editor/blocks.d.ts.map +1 -0
  63. package/dist/artifacts/editor/callout-view.d.ts +7 -0
  64. package/dist/artifacts/editor/callout-view.d.ts.map +1 -0
  65. package/dist/artifacts/editor/document-editor.d.ts +30 -0
  66. package/dist/artifacts/editor/document-editor.d.ts.map +1 -0
  67. package/dist/artifacts/editor/figure-view.d.ts +12 -0
  68. package/dist/artifacts/editor/figure-view.d.ts.map +1 -0
  69. package/dist/artifacts/editor/find-blocks.d.ts +6 -0
  70. package/dist/artifacts/editor/find-blocks.d.ts.map +1 -0
  71. package/dist/artifacts/editor/markdown-document.d.ts +12 -0
  72. package/dist/artifacts/editor/markdown-document.d.ts.map +1 -0
  73. package/dist/artifacts/editor/messages.d.ts +4 -0
  74. package/dist/artifacts/editor/messages.d.ts.map +1 -0
  75. package/dist/artifacts/editor/schema.d.ts +21 -0
  76. package/dist/artifacts/editor/schema.d.ts.map +1 -0
  77. package/dist/artifacts/editor/selection-toolbar.d.ts +35 -0
  78. package/dist/artifacts/editor/selection-toolbar.d.ts.map +1 -0
  79. package/dist/artifacts/editor/slash-menu.d.ts +43 -0
  80. package/dist/artifacts/editor/slash-menu.d.ts.map +1 -0
  81. package/dist/artifacts/editor/upload.d.ts +12 -0
  82. package/dist/artifacts/editor/upload.d.ts.map +1 -0
  83. package/dist/artifacts/file-source.d.ts +5 -0
  84. package/dist/artifacts/file-source.d.ts.map +1 -1
  85. package/dist/artifacts/frame-editor/bundle.d.ts +7 -0
  86. package/dist/artifacts/frame-editor/bundle.d.ts.map +1 -0
  87. package/dist/artifacts/frame-editor/commands.d.ts +93 -0
  88. package/dist/artifacts/frame-editor/commands.d.ts.map +1 -0
  89. package/dist/artifacts/frame-editor/entry.d.ts +2 -0
  90. package/dist/artifacts/frame-editor/entry.d.ts.map +1 -0
  91. package/dist/artifacts/frame-editor/frame.d.ts +5 -0
  92. package/dist/artifacts/frame-editor/frame.d.ts.map +1 -0
  93. package/dist/artifacts/frame-editor/keys.d.ts +8 -0
  94. package/dist/artifacts/frame-editor/keys.d.ts.map +1 -0
  95. package/dist/artifacts/frame-editor/protocol.d.ts +186 -0
  96. package/dist/artifacts/frame-editor/protocol.d.ts.map +1 -0
  97. package/dist/artifacts/frame-editor/schema.d.ts +34 -0
  98. package/dist/artifacts/frame-editor/schema.d.ts.map +1 -0
  99. package/dist/artifacts/frame-editor/style.d.ts +2 -0
  100. package/dist/artifacts/frame-editor/style.d.ts.map +1 -0
  101. package/dist/artifacts/frame.d.ts +2 -2
  102. package/dist/artifacts/frame.d.ts.map +1 -1
  103. package/dist/artifacts/live/boards.d.ts +2 -0
  104. package/dist/artifacts/live/boards.d.ts.map +1 -1
  105. package/dist/artifacts/live/document.d.ts +32 -0
  106. package/dist/artifacts/live/document.d.ts.map +1 -0
  107. package/dist/artifacts/live/header.d.ts +4 -4
  108. package/dist/artifacts/live/header.d.ts.map +1 -1
  109. package/dist/artifacts/live/presence.d.ts.map +1 -1
  110. package/dist/artifacts/live/session.d.ts +2 -0
  111. package/dist/artifacts/live/session.d.ts.map +1 -1
  112. package/dist/artifacts/live/view.d.ts +4 -3
  113. package/dist/artifacts/live/view.d.ts.map +1 -1
  114. package/dist/artifacts/messages.d.ts +226 -2
  115. package/dist/artifacts/messages.d.ts.map +1 -1
  116. package/dist/artifacts/pdf.d.ts +8 -0
  117. package/dist/artifacts/pdf.d.ts.map +1 -0
  118. package/dist/artifacts/queries.d.ts +80 -0
  119. package/dist/artifacts/queries.d.ts.map +1 -1
  120. package/dist/artifacts/references/references.d.ts +3 -3
  121. package/dist/artifacts/references/references.d.ts.map +1 -1
  122. package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
  123. package/dist/artifacts/renderers/canvas/comment-pins.d.ts +4 -2
  124. package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -1
  125. package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -1
  126. package/dist/artifacts/renderers/canvas/comments.d.ts +2 -1
  127. package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -1
  128. package/dist/artifacts/renderers/designed-document.d.ts +28 -0
  129. package/dist/artifacts/renderers/designed-document.d.ts.map +1 -0
  130. package/dist/artifacts/renderers/document-tree.d.ts +2 -0
  131. package/dist/artifacts/renderers/document-tree.d.ts.map +1 -1
  132. package/dist/artifacts/renderers/document.d.ts +9 -1
  133. package/dist/artifacts/renderers/document.d.ts.map +1 -1
  134. package/dist/artifacts/renderers/live-frame.d.ts +145 -0
  135. package/dist/artifacts/renderers/live-frame.d.ts.map +1 -0
  136. package/dist/artifacts/renderers/page-editor.d.ts +16 -0
  137. package/dist/artifacts/renderers/page-editor.d.ts.map +1 -0
  138. package/dist/artifacts/renderers/page.d.ts +10 -1
  139. package/dist/artifacts/renderers/page.d.ts.map +1 -1
  140. package/dist/artifacts/viewer.d.ts.map +1 -1
  141. package/dist/{chunk-kymx9y5e.js → chunk-4fex83k2.js} +10874 -4690
  142. package/dist/chunk-4fex83k2.js.map +239 -0
  143. package/dist/{chunk-yrcm1pbg.js → chunk-4wm09prf.js} +491 -2128
  144. package/dist/chunk-4wm09prf.js.map +27 -0
  145. package/dist/{chunk-pxd07kvx.js → chunk-5sgac68y.js} +1 -1
  146. package/dist/{chunk-970s5nkn.js → chunk-69qgh20f.js} +1 -1
  147. package/dist/chunk-y51c4tsz.js +11 -0
  148. package/dist/chunk-y51c4tsz.js.map +10 -0
  149. package/dist/index.d.ts +2 -1
  150. package/dist/index.d.ts.map +1 -1
  151. package/dist/index.js +11 -6
  152. package/dist/index.js.map +5 -5
  153. package/dist/pages/console/data/messages.d.ts +6 -0
  154. package/dist/pages/console/data/messages.d.ts.map +1 -1
  155. package/dist/pages/console/data/shared.d.ts.map +1 -1
  156. package/dist/pages.js +12 -5
  157. package/dist/pages.js.map +6 -6
  158. package/dist/shell/search-command.d.ts.map +1 -1
  159. package/package.json +22 -5
  160. package/src/agent/activity-label.ts +3 -0
  161. package/src/agent/agent-chat.tsx +56 -37
  162. package/src/agent/agent-execution-trace.tsx +2 -2
  163. package/src/agent/agent-panel.tsx +6 -4
  164. package/src/agent/agent.css +254 -0
  165. package/src/agent/artifact-panel.tsx +77 -22
  166. package/src/agent/components/composer-settings.tsx +20 -10
  167. package/src/agent/components/composer.tsx +342 -104
  168. package/src/agent/components/context-meter.tsx +7 -3
  169. package/src/agent/components/conversation-panel.tsx +69 -29
  170. package/src/agent/components/message-parts.tsx +367 -59
  171. package/src/agent/components/message-view.tsx +12 -2
  172. package/src/agent/components/pending-messages.tsx +338 -0
  173. package/src/agent/components/sandbox-recovery.tsx +36 -17
  174. package/src/agent/components/threads-button.tsx +3 -2
  175. package/src/agent/components/transcript.tsx +63 -34
  176. package/src/agent/conversation.ts +203 -54
  177. package/src/agent/delegation/interpret.ts +31 -7
  178. package/src/agent/hooks/use-agent-conversation.ts +348 -100
  179. package/src/agent/hooks/use-thread-stream.ts +10 -0
  180. package/src/agent/i18n/en.ts +87 -11
  181. package/src/agent/i18n/fr.ts +83 -12
  182. package/src/agent/inbox-handoff.ts +47 -0
  183. package/src/agent/live-run.ts +23 -2
  184. package/src/agent/react-router.tsx +2 -2
  185. package/src/agent/search/interpret.ts +367 -0
  186. package/src/agent/search/search-tool-view.tsx +235 -0
  187. package/src/agent/thread-state.ts +114 -0
  188. package/src/agent/tool-views/built-in.tsx +16 -0
  189. package/src/agent/tool-views/registry.tsx +28 -2
  190. package/src/agent/types.ts +7 -0
  191. package/src/agent/view-file/view-file-tool-view.tsx +33 -19
  192. package/src/artifacts/artifacts.css +398 -0
  193. package/src/artifacts/card-preview.tsx +6 -1
  194. package/src/artifacts/editor/block-handle.tsx +278 -0
  195. package/src/artifacts/editor/blocks.ts +216 -0
  196. package/src/artifacts/editor/callout-view.tsx +31 -0
  197. package/src/artifacts/editor/document-editor.tsx +484 -0
  198. package/src/artifacts/editor/figure-view.tsx +66 -0
  199. package/src/artifacts/editor/find-blocks.ts +19 -0
  200. package/src/artifacts/editor/markdown-document.tsx +72 -0
  201. package/src/artifacts/editor/messages.ts +4 -0
  202. package/src/artifacts/editor/schema.ts +159 -0
  203. package/src/artifacts/editor/selection-toolbar.tsx +364 -0
  204. package/src/artifacts/editor/slash-menu.tsx +251 -0
  205. package/src/artifacts/editor/upload.ts +40 -0
  206. package/src/artifacts/file-source.ts +11 -0
  207. package/src/artifacts/frame-editor/bundle.ts +8 -0
  208. package/src/artifacts/frame-editor/commands.ts +565 -0
  209. package/src/artifacts/frame-editor/entry.ts +6 -0
  210. package/src/artifacts/frame-editor/frame.ts +847 -0
  211. package/src/artifacts/frame-editor/generated/editor.txt +149 -0
  212. package/src/artifacts/frame-editor/generated.d.ts +5 -0
  213. package/src/artifacts/frame-editor/keys.ts +323 -0
  214. package/src/artifacts/frame-editor/protocol.ts +151 -0
  215. package/src/artifacts/frame-editor/schema.ts +293 -0
  216. package/src/artifacts/frame-editor/style.ts +58 -0
  217. package/src/artifacts/frame.tsx +11 -3
  218. package/src/artifacts/live/boards.ts +46 -3
  219. package/src/artifacts/live/document.ts +89 -0
  220. package/src/artifacts/live/header.tsx +9 -14
  221. package/src/artifacts/live/presence.ts +5 -1
  222. package/src/artifacts/live/session.ts +4 -2
  223. package/src/artifacts/live/view.ts +14 -8
  224. package/src/artifacts/messages.ts +138 -2
  225. package/src/artifacts/pdf.ts +50 -0
  226. package/src/artifacts/references/references.tsx +46 -11
  227. package/src/artifacts/renderers/canvas/board-editor.tsx +11 -144
  228. package/src/artifacts/renderers/canvas/comment-pins.tsx +5 -0
  229. package/src/artifacts/renderers/canvas/comments-panel.tsx +58 -1
  230. package/src/artifacts/renderers/canvas/comments.ts +8 -4
  231. package/src/artifacts/renderers/designed-document.tsx +277 -0
  232. package/src/artifacts/renderers/document-tree.ts +9 -0
  233. package/src/artifacts/renderers/document.tsx +13 -102
  234. package/src/artifacts/renderers/live-frame.ts +163 -0
  235. package/src/artifacts/renderers/page-editor.tsx +613 -0
  236. package/src/artifacts/renderers/page.tsx +21 -4
  237. package/src/artifacts/viewer.tsx +87 -41
  238. package/src/index.ts +6 -0
  239. package/src/pages/console/data/messages.ts +6 -0
  240. package/src/pages/console/data/projections.tsx +4 -0
  241. package/src/pages/console/data/shared.tsx +1 -0
  242. package/src/pages/console/ontology/lineage/trail.tsx +3 -0
  243. package/src/shell/search-command.tsx +2 -0
  244. package/dist/chunk-kymx9y5e.js.map +0 -211
  245. package/dist/chunk-yrcm1pbg.js.map +0 -34
  246. /package/dist/{chunk-pxd07kvx.js.map → chunk-5sgac68y.js.map} +0 -0
  247. /package/dist/{chunk-970s5nkn.js.map → chunk-69qgh20f.js.map} +0 -0
@@ -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: "This conversation's sandbox must be recovered before another answer.",
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: "Sandbox recovery required",
842
- description:
843
- "Recovery failed or the previous operation could not be confirmed. Automatic resume is blocked to protect your work.",
844
- recreateFailed: "Could not recreate the sandbox. Reload and try again.",
845
- recreating: "Recreating…",
846
- startFresh: "Start with a fresh sandbox",
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 next run will initialize a new environment. Local files from the previous workspace will not be copied. Conversation history and published attachments stay available. The previous sandbox is not deleted and remains subject to provider retention.",
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: "Create fresh sandbox",
852
- ownerOnly: (owner: string) => `Only ${owner} can start this conversation with a fresh sandbox.`,
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: {
@@ -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: "Récupération de l’environnement requise",
880
- description:
881
- "La récupération a échoué ou l’opération précédente n’a pas pu être confirmée. La reprise automatique est bloquée pour protéger le travail en cours.",
882
- recreateFailed: "Impossible de recréer l’environnement. Rechargez la page et réessayez.",
883
- recreating: "Recréation…",
884
- startFresh: "Repartir d’un nouvel environnement",
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
- "La prochaine exécution initialisera un nouvel environnement. Les fichiers locaux de l’espace de travail précédent ne seront pas copiés. L’historique de la conversation et les pièces jointes publiées restent disponibles. L’environnement précédent n’est pas supprimé et reste soumis à la politique de conservation du fournisseur.",
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: "Créer un nouvel environnement",
955
+ create: "Repartir de zéro",
890
956
  ownerOnly: (owner) =>
891
- `${owner} est la seule personne à pouvoir faire repartir cette conversation d’un nouvel environnement.`,
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
+ }
@@ -1,7 +1,18 @@
1
- import type { AgentRunFailure, AgentRunStreamEvent, ModelUiChunk } from "@sixb/client"
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]