@sixb/app 0.2.0 → 0.2.3

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 (469) hide show
  1. package/assets/connector-icons/README.md +1 -0
  2. package/assets/connector-icons/fleetio.ico +0 -0
  3. package/dist/agent/activity-label.d.ts.map +1 -1
  4. package/dist/agent/agent-chat.d.ts +9 -2
  5. package/dist/agent/agent-chat.d.ts.map +1 -1
  6. package/dist/agent/agent-panel.d.ts +9 -1
  7. package/dist/agent/agent-panel.d.ts.map +1 -1
  8. package/dist/agent/agent-surface.d.ts.map +1 -1
  9. package/dist/agent/artifact-card.d.ts +3 -1
  10. package/dist/agent/artifact-card.d.ts.map +1 -1
  11. package/dist/agent/artifact-panel.d.ts +7 -1
  12. package/dist/agent/artifact-panel.d.ts.map +1 -1
  13. package/dist/agent/background/background-card.d.ts +10 -0
  14. package/dist/agent/background/background-card.d.ts.map +1 -0
  15. package/dist/agent/background/background-tool-row.d.ts +9 -0
  16. package/dist/agent/background/background-tool-row.d.ts.map +1 -0
  17. package/dist/agent/background/context.d.ts +23 -0
  18. package/dist/agent/background/context.d.ts.map +1 -0
  19. package/dist/agent/background/interpret.d.ts +116 -0
  20. package/dist/agent/background/interpret.d.ts.map +1 -0
  21. package/dist/agent/bash/bash-tool-view.d.ts.map +1 -1
  22. package/dist/agent/bash/interpret.d.ts +4 -0
  23. package/dist/agent/bash/interpret.d.ts.map +1 -1
  24. package/dist/agent/components/composer-menu.d.ts +3 -1
  25. package/dist/agent/components/composer-menu.d.ts.map +1 -1
  26. package/dist/agent/components/composer-place.d.ts +13 -0
  27. package/dist/agent/components/composer-place.d.ts.map +1 -0
  28. package/dist/agent/components/composer.d.ts +23 -1
  29. package/dist/agent/components/composer.d.ts.map +1 -1
  30. package/dist/agent/components/computer-place.d.ts +3 -1
  31. package/dist/agent/components/computer-place.d.ts.map +1 -1
  32. package/dist/agent/components/context-chips.d.ts.map +1 -1
  33. package/dist/agent/components/context-meter.d.ts +1 -1
  34. package/dist/agent/components/conversation-panel.d.ts +3 -1
  35. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  36. package/dist/agent/components/message-parts.d.ts +3 -1
  37. package/dist/agent/components/message-parts.d.ts.map +1 -1
  38. package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -1
  39. package/dist/agent/components/transcript.d.ts +6 -0
  40. package/dist/agent/components/transcript.d.ts.map +1 -1
  41. package/dist/agent/components/web-fetch-tool-view.d.ts.map +1 -1
  42. package/dist/agent/composer-insertion.d.ts +24 -0
  43. package/dist/agent/composer-insertion.d.ts.map +1 -0
  44. package/dist/agent/delegation/child-parts.d.ts +2 -0
  45. package/dist/agent/delegation/child-parts.d.ts.map +1 -1
  46. package/dist/agent/delegation/use-children.d.ts +5 -5
  47. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  48. package/dist/agent/hooks/use-agent-conversation.d.ts +24 -4
  49. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  50. package/dist/agent/hooks/use-new-thread-place.d.ts +70 -0
  51. package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -0
  52. package/dist/agent/hooks/use-thread-lists.d.ts +40 -0
  53. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  54. package/dist/agent/i18n/en.d.ts +74 -0
  55. package/dist/agent/i18n/en.d.ts.map +1 -1
  56. package/dist/agent/i18n/fr.d.ts.map +1 -1
  57. package/dist/agent/i18n/index.d.ts +126 -0
  58. package/dist/agent/i18n/index.d.ts.map +1 -1
  59. package/dist/agent/observed-conversation.d.ts.map +1 -1
  60. package/dist/agent/publish-artifact/interpret.d.ts +8 -2
  61. package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
  62. package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts +9 -0
  63. package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts.map +1 -0
  64. package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +4 -2
  65. package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -1
  66. package/dist/agent/publish-artifact/use-live-publishes.d.ts +3 -3
  67. package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -1
  68. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  69. package/dist/agent/types.d.ts +3 -1
  70. package/dist/agent/types.d.ts.map +1 -1
  71. package/dist/agent/utils/web-fetch.d.ts +33 -1
  72. package/dist/agent/utils/web-fetch.d.ts.map +1 -1
  73. package/dist/agent/utils/web-search.d.ts +14 -2
  74. package/dist/agent/utils/web-search.d.ts.map +1 -1
  75. package/dist/artifacts/artifact-page.d.ts.map +1 -1
  76. package/dist/artifacts/artifact-viewer.d.ts +16 -0
  77. package/dist/artifacts/artifact-viewer.d.ts.map +1 -0
  78. package/dist/artifacts/card-details.d.ts +1 -1
  79. package/dist/artifacts/card-details.d.ts.map +1 -1
  80. package/dist/artifacts/card-preview.d.ts.map +1 -1
  81. package/dist/artifacts/comments-context.d.ts +48 -0
  82. package/dist/artifacts/comments-context.d.ts.map +1 -0
  83. package/dist/artifacts/edit-session.d.ts +6 -6
  84. package/dist/artifacts/edit-session.d.ts.map +1 -1
  85. package/dist/artifacts/file-source.d.ts.map +1 -1
  86. package/dist/artifacts/frame.d.ts +10 -2
  87. package/dist/artifacts/frame.d.ts.map +1 -1
  88. package/dist/artifacts/guest-badge.d.ts +8 -0
  89. package/dist/artifacts/guest-badge.d.ts.map +1 -0
  90. package/dist/artifacts/held-artifact.d.ts +19 -0
  91. package/dist/artifacts/held-artifact.d.ts.map +1 -0
  92. package/dist/artifacts/holders.d.ts +10 -0
  93. package/dist/artifacts/holders.d.ts.map +1 -0
  94. package/dist/artifacts/live/boards.d.ts +15 -0
  95. package/dist/artifacts/live/boards.d.ts.map +1 -0
  96. package/dist/artifacts/live/canvas.d.ts +79 -0
  97. package/dist/artifacts/live/canvas.d.ts.map +1 -0
  98. package/dist/artifacts/live/header.d.ts +29 -0
  99. package/dist/artifacts/live/header.d.ts.map +1 -0
  100. package/dist/artifacts/live/hooks.d.ts +21 -0
  101. package/dist/artifacts/live/hooks.d.ts.map +1 -0
  102. package/dist/artifacts/live/presence.d.ts +32 -0
  103. package/dist/artifacts/live/presence.d.ts.map +1 -0
  104. package/dist/artifacts/live/session.d.ts +130 -0
  105. package/dist/artifacts/live/session.d.ts.map +1 -0
  106. package/dist/artifacts/live/view.d.ts +28 -0
  107. package/dist/artifacts/live/view.d.ts.map +1 -0
  108. package/dist/artifacts/messages.d.ts +424 -14
  109. package/dist/artifacts/messages.d.ts.map +1 -1
  110. package/dist/artifacts/page-queries.d.ts +2 -2
  111. package/dist/artifacts/page-queries.d.ts.map +1 -1
  112. package/dist/artifacts/page-state.d.ts.map +1 -1
  113. package/dist/artifacts/publish-edit.d.ts +24 -14
  114. package/dist/artifacts/publish-edit.d.ts.map +1 -1
  115. package/dist/artifacts/queries.d.ts +490 -9
  116. package/dist/artifacts/queries.d.ts.map +1 -1
  117. package/dist/artifacts/references/references.d.ts.map +1 -1
  118. package/dist/artifacts/renderers/canvas/arrows.d.ts +0 -18
  119. package/dist/artifacts/renderers/canvas/arrows.d.ts.map +1 -1
  120. package/dist/artifacts/renderers/canvas/board-editor.d.ts +43 -0
  121. package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -0
  122. package/dist/artifacts/renderers/canvas/board-properties.d.ts +37 -0
  123. package/dist/artifacts/renderers/canvas/board-properties.d.ts.map +1 -0
  124. package/dist/artifacts/renderers/canvas/board-source.d.ts +18 -0
  125. package/dist/artifacts/renderers/canvas/board-source.d.ts.map +1 -0
  126. package/dist/artifacts/renderers/canvas/board.d.ts +64 -19
  127. package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
  128. package/dist/artifacts/renderers/canvas/canvas.d.ts +13 -4
  129. package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
  130. package/dist/artifacts/renderers/canvas/comment-pins.d.ts +84 -0
  131. package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -0
  132. package/dist/artifacts/renderers/canvas/commenting.d.ts +58 -0
  133. package/dist/artifacts/renderers/canvas/commenting.d.ts.map +1 -0
  134. package/dist/artifacts/renderers/canvas/comments-panel.d.ts +27 -0
  135. package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -0
  136. package/dist/artifacts/renderers/canvas/comments.d.ts +56 -0
  137. package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -0
  138. package/dist/artifacts/renderers/canvas/draft.d.ts +7 -6
  139. package/dist/artifacts/renderers/canvas/draft.d.ts.map +1 -1
  140. package/dist/artifacts/renderers/canvas/edit-mode.d.ts +19 -2
  141. package/dist/artifacts/renderers/canvas/edit-mode.d.ts.map +1 -1
  142. package/dist/artifacts/renderers/canvas/focus.d.ts +40 -5
  143. package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
  144. package/dist/artifacts/renderers/canvas/items.d.ts +47 -4
  145. package/dist/artifacts/renderers/canvas/items.d.ts.map +1 -1
  146. package/dist/artifacts/renderers/canvas/layout.d.ts +5 -8
  147. package/dist/artifacts/renderers/canvas/layout.d.ts.map +1 -1
  148. package/dist/artifacts/renderers/canvas/presence.d.ts +21 -0
  149. package/dist/artifacts/renderers/canvas/presence.d.ts.map +1 -0
  150. package/dist/artifacts/renderers/canvas/previews.d.ts +54 -0
  151. package/dist/artifacts/renderers/canvas/previews.d.ts.map +1 -0
  152. package/dist/artifacts/renderers/canvas/renderer.d.ts +11 -2
  153. package/dist/artifacts/renderers/canvas/renderer.d.ts.map +1 -1
  154. package/dist/artifacts/renderers/canvas/thumbnail.d.ts +5 -2
  155. package/dist/artifacts/renderers/canvas/thumbnail.d.ts.map +1 -1
  156. package/dist/artifacts/version-menu.d.ts +19 -0
  157. package/dist/artifacts/version-menu.d.ts.map +1 -0
  158. package/dist/artifacts/view-context.d.ts +43 -0
  159. package/dist/artifacts/view-context.d.ts.map +1 -0
  160. package/dist/artifacts/viewer.d.ts.map +1 -1
  161. package/dist/build.d.ts +5 -0
  162. package/dist/build.d.ts.map +1 -1
  163. package/dist/{chunk-fw2bm6dq.js → chunk-001c4gnk.js} +8086 -3870
  164. package/dist/chunk-001c4gnk.js.map +204 -0
  165. package/dist/chunk-00wggsst.js +7 -0
  166. package/dist/chunk-00wggsst.js.map +10 -0
  167. package/dist/chunk-5crvhjp2.js +4704 -0
  168. package/dist/chunk-5crvhjp2.js.map +28 -0
  169. package/dist/{chunk-q69001w3.js → chunk-694m74s7.js} +7 -1
  170. package/dist/{chunk-q69001w3.js.map → chunk-694m74s7.js.map} +3 -3
  171. package/dist/{chunk-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
  172. package/dist/chunk-fg6thecb.js.map +10 -0
  173. package/dist/{chunk-j9653e83.js → chunk-fwb9mxwm.js} +1 -1
  174. package/dist/{chunk-km25essq.js → chunk-kes4ygmz.js} +1 -1
  175. package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
  176. package/dist/codegen.d.ts.map +1 -1
  177. package/dist/createCustomApp.d.ts.map +1 -1
  178. package/dist/index.d.ts +7 -1
  179. package/dist/index.d.ts.map +1 -1
  180. package/dist/index.js +930 -309
  181. package/dist/index.js.map +15 -10
  182. package/dist/locale-messages.d.ts +12 -0
  183. package/dist/locale-messages.d.ts.map +1 -1
  184. package/dist/locale.d.ts +12 -0
  185. package/dist/locale.d.ts.map +1 -1
  186. package/dist/locale.js +1 -1
  187. package/dist/metadata.d.ts +8 -0
  188. package/dist/metadata.d.ts.map +1 -1
  189. package/dist/pages/console/action-run.d.ts.map +1 -1
  190. package/dist/pages/console/data/connectors.d.ts.map +1 -1
  191. package/dist/pages/console/data/datasets.d.ts.map +1 -1
  192. package/dist/pages/console/data/lake-health.d.ts +3 -0
  193. package/dist/pages/console/data/lake-health.d.ts.map +1 -0
  194. package/dist/pages/console/data/messages.d.ts +98 -2
  195. package/dist/pages/console/data/messages.d.ts.map +1 -1
  196. package/dist/pages/console/data/pipelines.d.ts.map +1 -1
  197. package/dist/pages/console/data/projections.d.ts.map +1 -1
  198. package/dist/pages/console/data/shared.d.ts.map +1 -1
  199. package/dist/pages/console/data/syncs.d.ts.map +1 -1
  200. package/dist/pages/console/ontology/action-runs.d.ts.map +1 -1
  201. package/dist/pages/console/ontology/actions.d.ts.map +1 -1
  202. package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -1
  203. package/dist/pages/console/ontology/components/artifact-picker.d.ts +36 -0
  204. package/dist/pages/console/ontology/components/artifact-picker.d.ts.map +1 -0
  205. package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -1
  206. package/dist/pages/console/ontology/lib/action-params.d.ts +2 -0
  207. package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -1
  208. package/dist/pages/console/ontology/lineage/properties-panel.d.ts +2 -1
  209. package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -1
  210. package/dist/pages/console/ontology/object-page.d.ts.map +1 -1
  211. package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
  212. package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
  213. package/dist/pages/console/ontology/objects.d.ts.map +1 -1
  214. package/dist/pages/console/ontology/rules.d.ts.map +1 -1
  215. package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
  216. package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -1
  217. package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -1
  218. package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
  219. package/dist/pages/console/skeletons.d.ts +30 -0
  220. package/dist/pages/console/skeletons.d.ts.map +1 -0
  221. package/dist/pages/console/workflow-run.d.ts.map +1 -1
  222. package/dist/pages/section-page.d.ts +11 -1
  223. package/dist/pages/section-page.d.ts.map +1 -1
  224. package/dist/pages/section-ui.d.ts +25 -3
  225. package/dist/pages/section-ui.d.ts.map +1 -1
  226. package/dist/pages/settings/activity/calendar.d.ts.map +1 -1
  227. package/dist/pages/settings/activity/connections.d.ts.map +1 -1
  228. package/dist/pages/settings/activity/page.d.ts.map +1 -1
  229. package/dist/pages/settings/activity/thread.d.ts.map +1 -1
  230. package/dist/pages/settings/activity/timeline.d.ts +2 -0
  231. package/dist/pages/settings/activity/timeline.d.ts.map +1 -1
  232. package/dist/pages/settings/controls.d.ts +4 -0
  233. package/dist/pages/settings/controls.d.ts.map +1 -1
  234. package/dist/pages/settings/members.d.ts.map +1 -1
  235. package/dist/pages/settings/memory-history.d.ts +2 -0
  236. package/dist/pages/settings/memory-history.d.ts.map +1 -1
  237. package/dist/pages/settings/memory.d.ts.map +1 -1
  238. package/dist/pages/settings/service-accounts.d.ts.map +1 -1
  239. package/dist/pages/settings/sessions.d.ts.map +1 -1
  240. package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
  241. package/dist/pages/settings/usage/limits.d.ts.map +1 -1
  242. package/dist/pages/settings/usage/messages.d.ts +2 -2
  243. package/dist/pages/settings/usage/messages.d.ts.map +1 -1
  244. package/dist/pages/settings/usage/runs.d.ts +8 -2
  245. package/dist/pages/settings/usage/runs.d.ts.map +1 -1
  246. package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -1
  247. package/dist/pages/settings/usage/spend-model.d.ts +5 -0
  248. package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
  249. package/dist/pages/values.d.ts +6 -0
  250. package/dist/pages/values.d.ts.map +1 -1
  251. package/dist/pages.d.ts +4 -0
  252. package/dist/pages.d.ts.map +1 -1
  253. package/dist/pages.js +8195 -4841
  254. package/dist/pages.js.map +58 -49
  255. package/dist/sections/catalog.d.ts.map +1 -1
  256. package/dist/sections/sections.d.ts.map +1 -1
  257. package/dist/server.js +294 -23
  258. package/dist/server.js.map +8 -7
  259. package/dist/service-worker.d.ts +39 -0
  260. package/dist/service-worker.d.ts.map +1 -0
  261. package/dist/shared-session.d.ts +25 -0
  262. package/dist/shared-session.d.ts.map +1 -0
  263. package/dist/shell/app-return.d.ts +35 -0
  264. package/dist/shell/app-return.d.ts.map +1 -0
  265. package/dist/shell/app-shell.d.ts +1 -1
  266. package/dist/shell/app-shell.d.ts.map +1 -1
  267. package/dist/shell/nav-items.d.ts +2 -0
  268. package/dist/shell/nav-items.d.ts.map +1 -1
  269. package/dist/shell/phone/back.d.ts +6 -0
  270. package/dist/shell/phone/back.d.ts.map +1 -0
  271. package/dist/shell/phone/launch.d.ts +7 -0
  272. package/dist/shell/phone/launch.d.ts.map +1 -0
  273. package/dist/shell/phone/more-sheet.d.ts +36 -0
  274. package/dist/shell/phone/more-sheet.d.ts.map +1 -0
  275. package/dist/shell/phone/phone-foundations.d.ts +9 -0
  276. package/dist/shell/phone/phone-foundations.d.ts.map +1 -0
  277. package/dist/shell/phone/pull-to-refresh.d.ts +9 -0
  278. package/dist/shell/phone/pull-to-refresh.d.ts.map +1 -0
  279. package/dist/shell/phone/routes.d.ts +12 -0
  280. package/dist/shell/phone/routes.d.ts.map +1 -0
  281. package/dist/shell/phone/screen-motion.d.ts +11 -0
  282. package/dist/shell/phone/screen-motion.d.ts.map +1 -0
  283. package/dist/shell/phone/scroll-restoration.d.ts +7 -0
  284. package/dist/shell/phone/scroll-restoration.d.ts.map +1 -0
  285. package/dist/shell/phone/startup-image.d.ts +17 -0
  286. package/dist/shell/phone/startup-image.d.ts.map +1 -0
  287. package/dist/shell/phone/tab-bar.d.ts +14 -0
  288. package/dist/shell/phone/tab-bar.d.ts.map +1 -0
  289. package/dist/shell/phone/top-bar.d.ts +24 -0
  290. package/dist/shell/phone/top-bar.d.ts.map +1 -0
  291. package/dist/shell/search-command.d.ts +3 -1
  292. package/dist/shell/search-command.d.ts.map +1 -1
  293. package/dist/shell/user-menu.d.ts +2 -0
  294. package/dist/shell/user-menu.d.ts.map +1 -1
  295. package/package.json +8 -5
  296. package/src/agent/activity-label.ts +6 -2
  297. package/src/agent/agent-chat.tsx +51 -8
  298. package/src/agent/agent-panel.tsx +12 -0
  299. package/src/agent/agent-surface.tsx +4 -0
  300. package/src/agent/agent.css +18 -0
  301. package/src/agent/artifact-card.tsx +84 -16
  302. package/src/agent/artifact-panel.tsx +63 -43
  303. package/src/agent/background/background-card.tsx +308 -0
  304. package/src/agent/background/background-tool-row.tsx +58 -0
  305. package/src/agent/background/context.ts +26 -0
  306. package/src/agent/background/interpret.ts +356 -0
  307. package/src/agent/bash/bash-tool-view.tsx +9 -4
  308. package/src/agent/bash/interpret.ts +21 -3
  309. package/src/agent/components/agent-message-body.tsx +1 -1
  310. package/src/agent/components/composer-menu.tsx +4 -1
  311. package/src/agent/components/composer-place.tsx +168 -0
  312. package/src/agent/components/composer.tsx +101 -3
  313. package/src/agent/components/computer-place.tsx +18 -1
  314. package/src/agent/components/context-chips.tsx +72 -2
  315. package/src/agent/components/conversation-panel.tsx +3 -2
  316. package/src/agent/components/message-parts.tsx +6 -1
  317. package/src/agent/components/thread-artifacts-menu.tsx +22 -5
  318. package/src/agent/components/transcript.tsx +33 -1
  319. package/src/agent/components/web-fetch-tool-view.tsx +94 -29
  320. package/src/agent/composer-insertion.ts +36 -0
  321. package/src/agent/delegation/child-parts.tsx +1 -1
  322. package/src/agent/hooks/use-agent-conversation.ts +101 -8
  323. package/src/agent/hooks/use-new-thread-place.ts +294 -0
  324. package/src/agent/i18n/en.ts +70 -3
  325. package/src/agent/i18n/fr.ts +70 -3
  326. package/src/agent/observed-conversation.tsx +3 -0
  327. package/src/agent/publish-artifact/interpret.ts +27 -5
  328. package/src/agent/publish-artifact/open-artifact-tool-view.tsx +49 -0
  329. package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +14 -8
  330. package/src/agent/publish-artifact/use-live-publishes.ts +7 -11
  331. package/src/agent/react-router.tsx +2 -2
  332. package/src/agent/tool-views/built-in.tsx +29 -11
  333. package/src/agent/types.ts +4 -0
  334. package/src/agent/utils/web-fetch.ts +89 -10
  335. package/src/agent/utils/web-search.ts +67 -28
  336. package/src/artifacts/artifact-page.tsx +42 -17
  337. package/src/artifacts/artifact-viewer.tsx +56 -0
  338. package/src/artifacts/artifacts.css +80 -0
  339. package/src/artifacts/card-details.ts +2 -2
  340. package/src/artifacts/card-preview.tsx +17 -3
  341. package/src/artifacts/comments-context.ts +125 -0
  342. package/src/artifacts/edit-session.tsx +6 -6
  343. package/src/artifacts/file-source.ts +10 -3
  344. package/src/artifacts/frame.tsx +50 -12
  345. package/src/artifacts/gallery.tsx +9 -11
  346. package/src/artifacts/guest-badge.tsx +21 -0
  347. package/src/artifacts/held-artifact.tsx +241 -0
  348. package/src/artifacts/holders.tsx +170 -0
  349. package/src/artifacts/live/boards.ts +95 -0
  350. package/src/artifacts/live/canvas.ts +402 -0
  351. package/src/artifacts/live/header.tsx +137 -0
  352. package/src/artifacts/live/hooks.ts +94 -0
  353. package/src/artifacts/live/presence.ts +147 -0
  354. package/src/artifacts/live/session.ts +520 -0
  355. package/src/artifacts/live/view.ts +81 -0
  356. package/src/artifacts/messages.ts +415 -24
  357. package/src/artifacts/page-queries.ts +2 -3
  358. package/src/artifacts/page-state.ts +16 -7
  359. package/src/artifacts/publish-edit.ts +50 -22
  360. package/src/artifacts/queries.ts +108 -10
  361. package/src/artifacts/references/references.tsx +6 -9
  362. package/src/artifacts/renderers/canvas/arrows.tsx +12 -39
  363. package/src/artifacts/renderers/canvas/board-editor.tsx +817 -0
  364. package/src/artifacts/renderers/canvas/board-properties.tsx +488 -0
  365. package/src/artifacts/renderers/canvas/board-source.ts +110 -0
  366. package/src/artifacts/renderers/canvas/board.tsx +309 -33
  367. package/src/artifacts/renderers/canvas/canvas.tsx +387 -72
  368. package/src/artifacts/renderers/canvas/comment-pins.tsx +465 -0
  369. package/src/artifacts/renderers/canvas/commenting.tsx +319 -0
  370. package/src/artifacts/renderers/canvas/comments-panel.tsx +574 -0
  371. package/src/artifacts/renderers/canvas/comments.ts +225 -0
  372. package/src/artifacts/renderers/canvas/draft.ts +41 -50
  373. package/src/artifacts/renderers/canvas/edit-mode.tsx +145 -20
  374. package/src/artifacts/renderers/canvas/focus.tsx +175 -24
  375. package/src/artifacts/renderers/canvas/items.tsx +179 -52
  376. package/src/artifacts/renderers/canvas/layout.ts +99 -47
  377. package/src/artifacts/renderers/canvas/presence.tsx +184 -0
  378. package/src/artifacts/renderers/canvas/previews.ts +127 -0
  379. package/src/artifacts/renderers/canvas/renderer.tsx +87 -22
  380. package/src/artifacts/renderers/canvas/thumbnail.tsx +56 -15
  381. package/src/artifacts/renderers/canvas/toolbar.tsx +1 -1
  382. package/src/artifacts/renderers/slides/slides.tsx +1 -1
  383. package/src/artifacts/version-menu.tsx +438 -0
  384. package/src/artifacts/view-context.ts +102 -0
  385. package/src/artifacts/viewer.tsx +205 -147
  386. package/src/build.ts +96 -11
  387. package/src/codegen.ts +83 -5
  388. package/src/createCustomApp.ts +20 -7
  389. package/src/index.ts +12 -0
  390. package/src/locale-messages.ts +24 -0
  391. package/src/metadata.ts +12 -0
  392. package/src/pages/console/action-run.tsx +20 -0
  393. package/src/pages/console/data/connectors.tsx +27 -3
  394. package/src/pages/console/data/datasets.tsx +30 -1
  395. package/src/pages/console/data/lake-health.tsx +299 -0
  396. package/src/pages/console/data/messages.ts +143 -2
  397. package/src/pages/console/data/pipelines.tsx +91 -3
  398. package/src/pages/console/data/projections.tsx +23 -4
  399. package/src/pages/console/data/shared.tsx +1 -0
  400. package/src/pages/console/data/syncs.tsx +39 -2
  401. package/src/pages/console/ontology/action-runs.tsx +8 -2
  402. package/src/pages/console/ontology/actions.tsx +39 -15
  403. package/src/pages/console/ontology/components/action-button.tsx +10 -0
  404. package/src/pages/console/ontology/components/artifact-picker.tsx +522 -0
  405. package/src/pages/console/ontology/components/object-query-bar.tsx +21 -5
  406. package/src/pages/console/ontology/lib/action-params.ts +10 -0
  407. package/src/pages/console/ontology/lineage/properties-panel.tsx +32 -24
  408. package/src/pages/console/ontology/object-page.tsx +2 -0
  409. package/src/pages/console/ontology/object-type.tsx +73 -14
  410. package/src/pages/console/ontology/object-types.tsx +56 -7
  411. package/src/pages/console/ontology/objects.tsx +167 -19
  412. package/src/pages/console/ontology/rules.tsx +186 -30
  413. package/src/pages/console/ontology/workflow.tsx +130 -74
  414. package/src/pages/console/ontology/workflows/run-input-form.tsx +21 -2
  415. package/src/pages/console/ontology/workflows/schema-shape.tsx +3 -0
  416. package/src/pages/console/ontology/workflows.tsx +34 -21
  417. package/src/pages/console/skeletons.tsx +99 -0
  418. package/src/pages/console/workflow-run.tsx +20 -0
  419. package/src/pages/section-page.tsx +37 -7
  420. package/src/pages/section-ui.tsx +96 -13
  421. package/src/pages/settings/activity/calendar.tsx +13 -6
  422. package/src/pages/settings/activity/connections.tsx +26 -9
  423. package/src/pages/settings/activity/page.tsx +31 -4
  424. package/src/pages/settings/activity/thread.tsx +32 -18
  425. package/src/pages/settings/activity/timeline.tsx +39 -0
  426. package/src/pages/settings/controls.tsx +19 -1
  427. package/src/pages/settings/developers.tsx +2 -2
  428. package/src/pages/settings/members.tsx +42 -9
  429. package/src/pages/settings/memory-history.tsx +76 -10
  430. package/src/pages/settings/memory.tsx +47 -5
  431. package/src/pages/settings/service-accounts.tsx +7 -2
  432. package/src/pages/settings/sessions.tsx +6 -2
  433. package/src/pages/settings/usage/breakdown.tsx +62 -2
  434. package/src/pages/settings/usage/limits.tsx +45 -3
  435. package/src/pages/settings/usage/messages.ts +2 -2
  436. package/src/pages/settings/usage/page.tsx +99 -52
  437. package/src/pages/settings/usage/runs.tsx +105 -8
  438. package/src/pages/settings/usage/spend-chart.tsx +79 -45
  439. package/src/pages/settings/usage/spend-model.ts +17 -0
  440. package/src/pages/values.tsx +72 -6
  441. package/src/pages.ts +4 -0
  442. package/src/sections/catalog.ts +6 -0
  443. package/src/sections/sections.tsx +2 -0
  444. package/src/service-worker.ts +176 -0
  445. package/src/shared-session.ts +73 -0
  446. package/src/shell/app-return.ts +115 -0
  447. package/src/shell/app-shell.tsx +125 -27
  448. package/src/shell/nav-items.tsx +2 -0
  449. package/src/shell/phone/back.ts +16 -0
  450. package/src/shell/phone/launch.ts +6 -0
  451. package/src/shell/phone/more-sheet.tsx +249 -0
  452. package/src/shell/phone/phone-foundations.tsx +43 -0
  453. package/src/shell/phone/phone.css +660 -0
  454. package/src/shell/phone/pull-to-refresh.tsx +201 -0
  455. package/src/shell/phone/routes.ts +34 -0
  456. package/src/shell/phone/screen-motion.ts +292 -0
  457. package/src/shell/phone/scroll-restoration.tsx +70 -0
  458. package/src/shell/phone/startup-image.ts +119 -0
  459. package/src/shell/phone/tab-bar.tsx +95 -0
  460. package/src/shell/phone/top-bar.tsx +195 -0
  461. package/src/shell/search-command.tsx +30 -14
  462. package/src/shell/user-menu.tsx +2 -1
  463. package/dist/chunk-4mprsd2n.js.map +0 -10
  464. package/dist/chunk-fw2bm6dq.js.map +0 -182
  465. package/dist/chunk-zxthr2q5.js +0 -1487
  466. package/dist/chunk-zxthr2q5.js.map +0 -18
  467. /package/dist/{chunk-j9653e83.js.map → chunk-fwb9mxwm.js.map} +0 -0
  468. /package/dist/{chunk-km25essq.js.map → chunk-kes4ygmz.js.map} +0 -0
  469. /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
@@ -0,0 +1,294 @@
1
+ import {
2
+ type DesktopComputer,
3
+ type DesktopComputerAccess,
4
+ listAgentComputersOptions,
5
+ useDesktop,
6
+ } from "@sixb/client/hooks"
7
+ import { useQuery, useQueryClient } from "@tanstack/react-query"
8
+ import { useCallback, useEffect, useState } from "react"
9
+
10
+ const STORAGE_KEY = "sixb.agent.new-thread-place"
11
+ /** In a browser: the folder chosen last, on one of the person's computers. */
12
+ const ONLINE_STORAGE_KEY = "sixb.agent.new-thread-place.online"
13
+
14
+ /** The last choice, on this computer: where a new conversation starts. */
15
+ interface StoredPlace {
16
+ readonly cloud: boolean
17
+ readonly folder: string | null
18
+ }
19
+
20
+ function readStored(): StoredPlace {
21
+ try {
22
+ const stored = JSON.parse(localStorage.getItem(STORAGE_KEY) ?? "null") as Partial<StoredPlace>
23
+ return { cloud: stored?.cloud === true, folder: stored?.folder ?? null }
24
+ } catch {
25
+ return { cloud: false, folder: null }
26
+ }
27
+ }
28
+
29
+ /** A message that's to run on this computer, and what runs it there can't start. */
30
+ export class ComputerUnavailableError extends Error {
31
+ constructor(cause: unknown) {
32
+ super("[SixbApp] What runs the agent on this computer couldn't start.", { cause })
33
+ this.name = "ComputerUnavailableError"
34
+ }
35
+ }
36
+
37
+ /** What a new conversation is created with to run on this computer: nothing, for the cloud. */
38
+ export type NewThreadPlaceBody =
39
+ | { readonly runsOn?: undefined }
40
+ | {
41
+ readonly runsOn: "computer"
42
+ readonly computer: DesktopComputer & { readonly folder: string }
43
+ }
44
+
45
+ /** A computer a new conversation can run on, with the folders to choose from there. */
46
+ export interface PlaceComputer {
47
+ /** Both null while what runs the agent on this computer can't start: the cloud is still a choice. */
48
+ readonly id: string | null
49
+ readonly name: string | null
50
+ readonly folders: readonly string[]
51
+ }
52
+
53
+ /** The composer's choice of where a new conversation runs. */
54
+ export interface NewThreadPlace {
55
+ /**
56
+ * In a desktop app, this computer alone. In a browser, the person's computers with `sixb` open,
57
+ * which aren't the one the page is on.
58
+ */
59
+ readonly computers: readonly PlaceComputer[]
60
+ /** The computers are elsewhere: what's shown names the computer as well as the folder. */
61
+ readonly remote: boolean
62
+ readonly cloud: boolean
63
+ /** Null before the person has chosen one: in a desktop app, the first message asks. */
64
+ readonly chosen: { readonly computer: PlaceComputer; readonly folder: string } | null
65
+ readonly chooseCloud: () => void
66
+ readonly chooseFolder: (computer: PlaceComputer, folder: string) => void
67
+ /** In a desktop app: ask the person for a folder, and use it. */
68
+ readonly pickFolder?: () => Promise<void>
69
+ /** In a desktop app: take a folder back. */
70
+ readonly forgetFolder?: (folder: string) => void
71
+ /**
72
+ * In a desktop app: read this computer's folders again, as the menu opens. A browser's list
73
+ * follows the activity feed instead.
74
+ */
75
+ readonly refreshFolders?: () => void
76
+ }
77
+
78
+ export interface NewThreadPlaceState {
79
+ /** Null where the only place is the cloud, or until it's known that there's another. */
80
+ readonly place: NewThreadPlace | null
81
+ /** A desktop app that hasn't said yet whether it can run the agent here. */
82
+ readonly waiting: boolean
83
+ /** This computer, once the desktop app has said: what tells a conversation that runs on it. */
84
+ readonly computerId: string | null
85
+ /**
86
+ * What to create the next conversation with, asking for a folder if none is chosen. Null when the
87
+ * person cancels, so that their message stays in the composer.
88
+ */
89
+ readonly resolveBody: () => Promise<NewThreadPlaceBody | null>
90
+ }
91
+
92
+ /**
93
+ * Where a new conversation runs. In a desktop app that can run the agent here: this computer
94
+ * unless the person chooses the cloud. In a browser: the cloud unless they choose a folder on one
95
+ * of their computers where `sixb` is open now, and there's nothing to choose while none is.
96
+ *
97
+ * `starting`: a new conversation is open. Only then does a browser list the person's computers.
98
+ */
99
+ export function useNewThreadPlace(starting: boolean): NewThreadPlaceState {
100
+ const access: DesktopComputerAccess | null = useDesktop()?.computer ?? null
101
+ const desktop = useDesktopPlace(access)
102
+ const online = useOnlineComputersPlace(starting && access === null)
103
+ return desktop ?? online
104
+ }
105
+
106
+ /** In a desktop app that can run the agent here; null elsewhere. */
107
+ function useDesktopPlace(access: DesktopComputerAccess | null): NewThreadPlaceState | null {
108
+ // Undefined until the desktop app answers; null where it can't run the agent.
109
+ const [computer, setComputer] = useState<DesktopComputer | null | undefined>(undefined)
110
+ const [cannotStart, setCannotStart] = useState(false)
111
+ // Null until the runner has said: a folder chosen before isn't taken as gone meanwhile.
112
+ const [folders, setFolders] = useState<readonly string[] | null>(null)
113
+ const [stored, setStored] = useState(readStored)
114
+
115
+ const remember = useCallback((next: StoredPlace) => {
116
+ setStored(next)
117
+ try {
118
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(next))
119
+ } catch {
120
+ // Private storage: the choice lasts as long as the page.
121
+ }
122
+ }, [])
123
+
124
+ const refreshFolders = useCallback(() => {
125
+ void access?.folders().then(setFolders, () => {})
126
+ }, [access])
127
+
128
+ useEffect(() => {
129
+ if (!access) return
130
+ let current = true
131
+ const refresh = () => {
132
+ void access.about().then(
133
+ (found) => {
134
+ if (!current) return
135
+ setComputer(found)
136
+ setCannotStart(false)
137
+ },
138
+ () => {
139
+ if (current) setCannotStart(true)
140
+ }
141
+ )
142
+ refreshFolders()
143
+ }
144
+ refresh()
145
+ // A runner that couldn't start when this first asked may have since.
146
+ window.addEventListener("focus", refresh)
147
+ return () => {
148
+ current = false
149
+ window.removeEventListener("focus", refresh)
150
+ }
151
+ }, [access, refreshFolders])
152
+
153
+ if (!access) return null
154
+
155
+ const pick = async (): Promise<string | null> => {
156
+ const folder = await access.pickFolder()
157
+ if (folder) {
158
+ remember({ cloud: false, folder })
159
+ refreshFolders()
160
+ }
161
+ return folder
162
+ }
163
+
164
+ // Asks the runner rather than reading what's shown: a message sent before it has answered goes
165
+ // where the person last chose, not to the cloud by default. One it can't start for says so.
166
+ const resolveBody = async (): Promise<NewThreadPlaceBody | null> => {
167
+ if (stored.cloud) return {}
168
+ const found = await access.about().catch((cause: unknown) => {
169
+ throw new ComputerUnavailableError(cause)
170
+ })
171
+ if (!found) return {}
172
+ // A folder that's no longer allowed here, or no longer there, or a sign-in that ended: asking
173
+ // again allows it, and signs in. Anything else would leave the message waiting on nothing.
174
+ const allowed = await access.folders()
175
+ const folder = stored.folder && allowed.includes(stored.folder) ? stored.folder : await pick()
176
+ return folder ? { runsOn: "computer", computer: { ...found, folder } } : null
177
+ }
178
+
179
+ if (computer === null || (computer === undefined && !cannotStart)) {
180
+ return { place: null, waiting: computer === undefined, computerId: null, resolveBody }
181
+ }
182
+
183
+ const here: PlaceComputer = {
184
+ id: computer?.id ?? null,
185
+ name: computer?.name ?? null,
186
+ folders: folders ?? [],
187
+ }
188
+ const folder =
189
+ stored.folder && (!folders || folders.includes(stored.folder)) ? stored.folder : null
190
+ return {
191
+ waiting: false,
192
+ computerId: computer?.id ?? null,
193
+ place: {
194
+ computers: [here],
195
+ remote: false,
196
+ cloud: stored.cloud,
197
+ chosen: folder ? { computer: here, folder } : null,
198
+ chooseCloud: () => remember({ ...stored, cloud: true }),
199
+ chooseFolder: (_here, folder) => remember({ cloud: false, folder }),
200
+ pickFolder: async () => {
201
+ await pick()
202
+ },
203
+ forgetFolder: (folder) => {
204
+ void access.forgetFolder(folder).then(refreshFolders, () => {})
205
+ if (stored.folder === folder) remember({ ...stored, folder: null })
206
+ },
207
+ refreshFolders,
208
+ },
209
+ resolveBody,
210
+ }
211
+ }
212
+
213
+ /** The folder a browser last chose, on one of the person's computers: null for the cloud. */
214
+ interface StoredOnlinePlace {
215
+ readonly computerId: string
216
+ readonly folder: string
217
+ }
218
+
219
+ function readStoredOnline(): StoredOnlinePlace | null {
220
+ try {
221
+ const stored = JSON.parse(localStorage.getItem(ONLINE_STORAGE_KEY) ?? "null") as unknown
222
+ if (!stored || typeof stored !== "object") return null
223
+ const { computerId, folder } = stored as Partial<StoredOnlinePlace>
224
+ return typeof computerId === "string" && typeof folder === "string"
225
+ ? { computerId, folder }
226
+ : null
227
+ } catch {
228
+ return null
229
+ }
230
+ }
231
+
232
+ type OnlineComputer = PlaceComputer & { readonly id: string; readonly name: string }
233
+
234
+ /**
235
+ * In a browser: the person's computers where `sixb` is open now. A folder chosen before is the
236
+ * place only while it's open there: what's shown is what a message is sent to, and the cloud
237
+ * otherwise.
238
+ */
239
+ function useOnlineComputersPlace(enabled: boolean): NewThreadPlaceState {
240
+ const queryClient = useQueryClient()
241
+ const listed = useQuery({ ...listAgentComputersOptions(), enabled })
242
+ const [stored, setStored] = useState(readStoredOnline)
243
+
244
+ const remember = useCallback((next: StoredOnlinePlace | null) => {
245
+ setStored(next)
246
+ try {
247
+ localStorage.setItem(ONLINE_STORAGE_KEY, JSON.stringify(next))
248
+ } catch {
249
+ // Private storage: the choice lasts as long as the page.
250
+ }
251
+ }, [])
252
+
253
+ const chosenIn = (computers: readonly OnlineComputer[]) => {
254
+ const computer = stored ? computers.find((known) => known.id === stored.computerId) : undefined
255
+ return stored && computer?.folders.includes(stored.folder)
256
+ ? { computer, folder: stored.folder }
257
+ : null
258
+ }
259
+
260
+ // Before the list arrives, a message waits for it rather than going to the cloud by default.
261
+ const resolveBody = async (): Promise<NewThreadPlaceBody> => {
262
+ if (!enabled || !stored) return {}
263
+ const computers = await queryClient
264
+ .ensureQueryData(listAgentComputersOptions())
265
+ .then(({ computers }) => computers)
266
+ .catch(() => [])
267
+ const chosen = chosenIn(computers)
268
+ if (!chosen) return {}
269
+ const { id, name } = chosen.computer
270
+ return { runsOn: "computer", computer: { id, name, folder: chosen.folder } }
271
+ }
272
+
273
+ const computers = listed.data?.computers ?? []
274
+ if (!enabled || computers.length === 0) {
275
+ return { place: null, waiting: false, computerId: null, resolveBody }
276
+ }
277
+
278
+ const chosen = chosenIn(computers)
279
+ return {
280
+ waiting: false,
281
+ computerId: null,
282
+ place: {
283
+ computers,
284
+ remote: true,
285
+ cloud: chosen === null,
286
+ chosen,
287
+ chooseCloud: () => remember(null),
288
+ chooseFolder: (computer, folder) => {
289
+ if (computer.id) remember({ computerId: computer.id, folder })
290
+ },
291
+ },
292
+ resolveBody,
293
+ }
294
+ }
@@ -51,6 +51,8 @@ export const en = {
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
53
  sandboxUnavailable: "This conversation's sandbox must be recovered before another answer.",
54
+ computerUnavailable:
55
+ "This computer can't run the agent right now. Try again, or choose Cloud below.",
54
56
  retryFailed: "Couldn't retry this answer. Try again.",
55
57
  stopFailed: "Couldn't stop this answer. Try again.",
56
58
  removed: "You no longer take part in this thread.",
@@ -122,6 +124,10 @@ export const en = {
122
124
  searching: "Searching…",
123
125
  empty: (query: string) => `No objects found for “${query}”`,
124
126
  remove: (label: string) => `Remove ${label} context`,
127
+ /** A chip of comments: what shows them, and a comment the project cannot name the author of. */
128
+ showComments: (label: string) => `Show ${label}`,
129
+ someone: "Someone",
130
+ replies: (count: number) => (count === 1 ? "1 reply" : `${count} replies`),
125
131
  /** A context entry with no readable name. */
126
132
  unnamed: "Context",
127
133
  },
@@ -421,10 +427,18 @@ export const en = {
421
427
  results: (results: number) => count(results, "result"),
422
428
  webPage: "web page",
423
429
  reading: (domain: string) => `Reading ${domain}`,
430
+ /** A page read to answer a question about it. */
431
+ asking: (domain: string) => `Asking ${domain}`,
424
432
  read: (domain: string) => `Read ${domain}`,
425
433
  reviewing: (domain: string) => `Reviewing ${domain}`,
426
434
  readFailed: (domain: string) => `Could not read ${domain}`,
427
435
  pageError: "The page could not be read.",
436
+ redirectedTo: (domain: string) => `Redirected to ${domain}`,
437
+ answerFailed: "No answer came back. Here is how the page begins.",
438
+ /** Under an answer that reached its length limit. */
439
+ answerTruncated: "The answer stopped at its length limit and may be incomplete.",
440
+ /** Beside the size of a page that was too large to read whole. */
441
+ truncated: "truncated",
428
442
  noPageText: "No page text was returned.",
429
443
  openPage: "Open page",
430
444
  newTab: " (opens in a new tab)",
@@ -488,6 +502,8 @@ export const en = {
488
502
  /** Headlines of the agent's shell commands: past tense when done, progressive while running. */
489
503
  bash: {
490
504
  preparing: "Preparing a command",
505
+ /** Beside a command stopped at its timeout, which reads otherwise as a plain failure. */
506
+ timedOut: (duration: string) => `timed out after ${duration}`,
491
507
  steps: {
492
508
  title: (steps: number) => `Ran ${count(steps, "step")}`,
493
509
  running: (steps: number) => `Running ${count(steps, "step")}`,
@@ -760,6 +776,16 @@ export const en = {
760
776
  publishing: (title: string) => `Publishing ${title || "an artifact"}`,
761
777
  published: (title: string) => `Published ${title || "an artifact"}`,
762
778
  publishFailed: (title: string) => `Couldn't publish ${title || "an artifact"}`,
779
+ /** An `update_artifact` call, which changes an artifact's current version. */
780
+ updating: (title: string) => `Updating ${title || "an artifact"}`,
781
+ updated: (title: string) => `Updated ${title || "an artifact"}`,
782
+ updateFailed: (title: string) => `Couldn't update ${title || "an artifact"}`,
783
+ /** An `open_artifact` call, which installs an artifact for the agent to read or revise. */
784
+ opening: (title: string) => `Opening ${title || "an artifact"}`,
785
+ opened: (title: string) => `Opened ${title || "an artifact"}`,
786
+ openFailed: (title: string) => `Couldn't open ${title || "an artifact"}`,
787
+ /** A revised artifact whose structure stayed as it was: what changed is within it. */
788
+ changed: "Updated",
763
789
  open: (title: string) => `Open ${title}`,
764
790
  /** Labels the cards of what one response published. */
765
791
  cards: "Published in this response",
@@ -783,15 +809,56 @@ export const en = {
783
809
  create: "Create fresh sandbox",
784
810
  ownerOnly: (owner: string) => `Only ${owner} can start this conversation with a fresh sandbox.`,
785
811
  },
812
+ /** A command the agent runs in the background, as its card and its calls read. */
813
+ background: {
814
+ card: (command: string) => `Background command: ${command}`,
815
+ starting: "Starting in the background",
816
+ running: "Running",
817
+ waiting: "the agent waits for it",
818
+ reading: "the agent reads it",
819
+ stopping: "Stopping…",
820
+ exited: (code: number) => (code === 0 ? "Exited · code 0" : `Failed · exit code ${code}`),
821
+ stopped: "Stopped",
822
+ stoppedWithTurn: "Stopped as its turn ended",
823
+ stoppedWithSixb: "Stopped as sixb quit",
824
+ unknown: "Last seen running",
825
+ unreachable: "Last seen running · sixb is closed there",
826
+ stop: "Stop",
827
+ stopHint: "Stop it, and everything it started",
828
+ stopFailed: "Could not stop it: it may have ended. Try again.",
829
+ output: "Output",
830
+ lines: (lines: number) => count(lines, "line"),
831
+ earlierOutput: (path: string) => `Earlier output is in ${path}`,
832
+ rows: {
833
+ start: { title: "Started in the background", running: "Starting in the background" },
834
+ read: { title: "Checked a background command", running: "Checking a background command" },
835
+ wait: {
836
+ title: "Waited for a background command",
837
+ running: "Waiting for a background command",
838
+ },
839
+ stop: { title: "Stopped a background command", running: "Stopping a background command" },
840
+ },
841
+ },
786
842
  /** A conversation that runs on its owner's computer, as its owner sees it. */
787
843
  computer: {
788
- online: "sixb is open there",
789
- offline: "sixb is closed there",
844
+ online: "Connected",
845
+ offline: "Not connected",
790
846
  offlineNotice: (computer: string, folder: string) =>
791
- `${computer} is offline. Your message waits until sixb is open in ${folder} with messages from the web on.`,
847
+ `${computer} is offline. Your message waits until ${folder} is connected there.`,
792
848
  noFolder:
793
849
  "This conversation has no folder yet. Open sixb in its folder and press ctrl+f, or continue in the cloud.",
850
+ /** In a desktop app, about a conversation of this computer's. */
851
+ offlineHere: (folder: string) =>
852
+ `Not running here yet. Your message waits until this computer is connected in ${folder}.`,
853
+ runHere: "Run on this computer",
794
854
  waitingFor: (computer: string) => `Waiting for ${computer}`,
855
+ /** Where a new conversation runs, in a desktop app. */
856
+ placeTitle: "Where this conversation runs",
857
+ placeChip: (place: string) => `Runs in ${place}. Change where it runs`,
858
+ cloud: "Cloud",
859
+ chooseFolder: "Choose a folder…",
860
+ chooseFolderShort: "Choose a folder",
861
+ forgetFolder: (folder: string) => `Stop running messages in ${folder}`,
795
862
  continueInCloud: "Continue in the cloud",
796
863
  moving: "Moving…",
797
864
  moveFailed: "Could not move it to the cloud. Try again.",
@@ -42,6 +42,8 @@ export const fr: Translation<AgentMessages> = {
42
42
  busy: "Une réponse est déjà en cours. Envoyez votre message quand elle sera terminée.",
43
43
  busyOther:
44
44
  "L’agent répond au message de quelqu’un d’autre. Envoyez le vôtre quand il aura fini.",
45
+ computerUnavailable:
46
+ "Cet ordinateur ne peut pas exécuter l’agent pour le moment. Réessayez, ou choisissez Cloud ci-dessous.",
45
47
  sandboxUnavailable:
46
48
  "L’environnement de cette conversation doit être récupéré avant une nouvelle réponse.",
47
49
  retryFailed: "Impossible de relancer cette réponse. Réessayez.",
@@ -115,6 +117,9 @@ export const fr: Translation<AgentMessages> = {
115
117
  searching: "Recherche…",
116
118
  empty: (query) => `Aucun objet trouvé pour ${quoted(query)}`,
117
119
  remove: (label) => `Retirer le contexte ${label}`,
120
+ showComments: (label) => `Afficher ${label}`,
121
+ someone: "Quelqu’un",
122
+ replies: (count) => (count === 1 ? "1 réponse" : `${count} réponses`),
118
123
  unnamed: "Contexte",
119
124
  },
120
125
  models: {
@@ -401,10 +406,15 @@ export const fr: Translation<AgentMessages> = {
401
406
  results: (results) => count(results, "résultat"),
402
407
  webPage: "page web",
403
408
  reading: (domain) => `Lecture : ${domain}`,
409
+ asking: (domain) => `Question à ${domain}`,
404
410
  read: (domain) => `Page consultée : ${domain}`,
405
411
  reviewing: (domain) => `Analyse : ${domain}`,
406
412
  readFailed: (domain) => `Lecture impossible : ${domain}`,
407
413
  pageError: "La page n’a pas pu être lue.",
414
+ redirectedTo: (domain) => `Redirigé vers ${domain}`,
415
+ answerFailed: "Aucune réponse n’a été obtenue. Voici le début de la page.",
416
+ answerTruncated: "La réponse a atteint sa longueur maximale et peut être incomplète.",
417
+ truncated: "tronqué",
408
418
  noPageText: "Aucun texte n’a été récupéré sur cette page.",
409
419
  openPage: "Ouvrir la page",
410
420
  newTab: " (s’ouvre dans un nouvel onglet)",
@@ -466,6 +476,7 @@ export const fr: Translation<AgentMessages> = {
466
476
  },
467
477
  bash: {
468
478
  preparing: "Préparation d’une commande",
479
+ timedOut: (duration) => `délai de ${duration} dépassé`,
469
480
  steps: {
470
481
  title: (steps) => count(steps, "étape exécutée", "étapes exécutées"),
471
482
  running: (steps) => `Exécution de ${count(steps, "étape")}`,
@@ -812,6 +823,15 @@ export const fr: Translation<AgentMessages> = {
812
823
  published: (title) => (title ? `${title} publié` : "Artefact publié"),
813
824
  publishFailed: (title) =>
814
825
  title ? `Impossible de publier ${title}` : "Impossible de publier l’artefact",
826
+ updating: (title) => (title ? `Mise à jour de ${title}` : "Mise à jour d’un artefact"),
827
+ updated: (title) => (title ? `${title} mis à jour` : "Artefact mis à jour"),
828
+ updateFailed: (title) =>
829
+ title ? `Impossible de mettre à jour ${title}` : "Impossible de mettre à jour l’artefact",
830
+ opening: (title) => (title ? `Ouverture de ${title}` : "Ouverture d’un artefact"),
831
+ opened: (title) => (title ? `${title} ouvert` : "Artefact ouvert"),
832
+ openFailed: (title) =>
833
+ title ? `Impossible d’ouvrir ${title}` : "Impossible d’ouvrir l’artefact",
834
+ changed: "Mis à jour",
815
835
  open: (title) => `Ouvrir ${title}`,
816
836
  cards: "Publié dans cette réponse",
817
837
  close: "Fermer",
@@ -835,13 +855,60 @@ export const fr: Translation<AgentMessages> = {
835
855
  ownerOnly: (owner) =>
836
856
  `${owner} est la seule personne à pouvoir faire repartir cette conversation d’un nouvel environnement.`,
837
857
  },
858
+ background: {
859
+ card: (command) => `Commande en arrière-plan : ${command}`,
860
+ starting: "Démarrage en arrière-plan",
861
+ running: "En cours",
862
+ waiting: "l’agent l’attend",
863
+ reading: "l’agent la lit",
864
+ stopping: "Arrêt…",
865
+ exited: (code) => (code === 0 ? "Terminée · code 0" : `Échec · code de sortie ${code}`),
866
+ stopped: "Arrêtée",
867
+ stoppedWithTurn: "Arrêtée à la fin de son tour",
868
+ stoppedWithSixb: "Arrêtée à la fermeture de sixb",
869
+ unknown: "En cours à la dernière lecture",
870
+ unreachable: "En cours à la dernière lecture · sixb y est fermé",
871
+ stop: "Arrêter",
872
+ stopHint: "L’arrêter, avec tout ce qu’elle a lancé",
873
+ stopFailed: "Impossible de l’arrêter : elle est peut-être terminée. Réessayez.",
874
+ output: "Sortie",
875
+ lines: (lines) => count(lines, "ligne"),
876
+ earlierOutput: (path) => `La sortie précédente est dans ${path}`,
877
+ rows: {
878
+ start: {
879
+ title: "Commande lancée en arrière-plan",
880
+ running: "Lancement d’une commande en arrière-plan",
881
+ },
882
+ read: {
883
+ title: "Commande en arrière-plan consultée",
884
+ running: "Consultation d’une commande en arrière-plan",
885
+ },
886
+ wait: {
887
+ title: "Commande en arrière-plan attendue",
888
+ running: "Attente d’une commande en arrière-plan",
889
+ },
890
+ stop: {
891
+ title: "Commande en arrière-plan arrêtée",
892
+ running: "Arrêt d’une commande en arrière-plan",
893
+ },
894
+ },
895
+ },
838
896
  computer: {
839
- online: "sixb y est ouvert",
840
- offline: "sixb y est fermé",
897
+ online: "Connecté",
898
+ offline: "Non connecté",
841
899
  offlineNotice: (computer, folder) =>
842
- `${computer} est hors ligne. Votre message attendra que sixb soit ouvert dans ${folder} avec les messages du web activés.`,
900
+ `${computer} est hors ligne. Votre message attendra que ${folder} y soit connecté.`,
843
901
  noFolder:
844
902
  "Cette conversation n’a pas encore de dossier. Ouvrez sixb dans son dossier et appuyez sur ctrl+f, ou continuez dans le cloud.",
903
+ offlineHere: (folder) =>
904
+ `Pas encore en cours ici. Votre message attendra que cet ordinateur soit connecté dans ${folder}.`,
905
+ runHere: "Exécuter sur cet ordinateur",
906
+ placeTitle: "Où cette conversation s'exécute",
907
+ placeChip: (place) => `S'exécute dans ${place}. Changer l'emplacement`,
908
+ cloud: "Cloud",
909
+ chooseFolder: "Choisir un dossier…",
910
+ chooseFolderShort: "Choisir un dossier",
911
+ forgetFolder: (folder) => `Ne plus exécuter les messages dans ${folder}`,
845
912
  waitingFor: (computer) => `En attente de ${computer}`,
846
913
  continueInCloud: "Continuer dans le cloud",
847
914
  moving: "Déplacement…",
@@ -137,6 +137,9 @@ export function ObservedConversation({
137
137
  messages={conversation}
138
138
  turn={turn}
139
139
  approvalOutcomes={approvalOutcomes}
140
+ background={{
141
+ source: { onComputer: thread.runsOn === "computer", live: null, online: false },
142
+ }}
140
143
  />
141
144
  )
142
145
  if (messagesQuery.isLoading) {
@@ -2,17 +2,29 @@ import { ARTIFACT_KINDS } from "@sixb/core/artifacts"
2
2
  import type { ArtifactKindName } from "../../artifacts/kind-icon"
3
3
  import type { NormalizedPart, NormalizedTool } from "../parts"
4
4
 
5
- /** Creating an artifact, and publishing the next version of one. */
6
- const PUBLISH_TOOLS = new Set(["publish_artifact", "publish_artifact_version"])
5
+ /**
6
+ * Creating an artifact, and changing one: `update_artifact` writes its current version, and
7
+ * `publish_artifact_version`, in threads from before, published the next version.
8
+ */
9
+ const PUBLISH_TOOLS = new Set(["publish_artifact", "update_artifact", "publish_artifact_version"])
7
10
 
8
11
  export function isPublishTool(toolName: string): boolean {
9
12
  return PUBLISH_TOOLS.has(toolName)
10
13
  }
11
14
 
15
+ /** Whether a publish call changed an artifact that was there before, rather than created one. */
16
+ export function isUpdateTool(toolName: string): boolean {
17
+ return toolName === "update_artifact" || toolName === "publish_artifact_version"
18
+ }
19
+
12
20
  /** What one publish call published, read from its result. */
13
21
  export interface PublishedArtifact {
14
22
  readonly artifactId: string
15
23
  readonly version: number
24
+ /** The artifact's revision once written: absent from calls made before revisions. */
25
+ readonly revision?: number
26
+ /** Whether the version written stays open; absent from calls made before open versions. */
27
+ readonly open?: boolean
16
28
  readonly kind: ArtifactKindName
17
29
  readonly title: string
18
30
  readonly warnings: readonly { readonly message: string; readonly part?: string }[]
@@ -34,6 +46,8 @@ export function publishedArtifact(tool: NormalizedTool): PublishedArtifact | nul
34
46
  return {
35
47
  artifactId: output.artifactId,
36
48
  version: output.version,
49
+ ...(typeof output.revision === "number" ? { revision: output.revision } : {}),
50
+ ...(typeof output.open === "boolean" ? { open: output.open } : {}),
37
51
  kind: output.kind as ArtifactKindName,
38
52
  title: output.title,
39
53
  warnings: warnings.flatMap((warning) =>
@@ -62,8 +76,8 @@ export interface TurnArtifact extends PublishedArtifact {
62
76
  }
63
77
 
64
78
  /**
65
- * Each artifact a turn published, once, at the last version the turn published, in the order the
66
- * turn first published them.
79
+ * Each artifact a turn published, once, as the turn last wrote it, in the order the turn first
80
+ * published them.
67
81
  */
68
82
  export function turnArtifacts(parts: readonly NormalizedPart[]): TurnArtifact[] {
69
83
  const byId = new Map<string, TurnArtifact>()
@@ -73,7 +87,7 @@ export function turnArtifacts(parts: readonly NormalizedPart[]): TurnArtifact[]
73
87
  if (!published) continue
74
88
  const earlier = byId.get(published.artifactId)
75
89
  const created = earlier?.created === true || part.tool.toolName === "publish_artifact"
76
- if (!earlier || published.version > earlier.version) {
90
+ if (!earlier || writtenAfter(published, earlier)) {
77
91
  byId.set(published.artifactId, { ...published, created })
78
92
  } else if (created !== earlier.created) {
79
93
  byId.set(published.artifactId, { ...earlier, created })
@@ -82,6 +96,14 @@ export function turnArtifacts(parts: readonly NormalizedPart[]): TurnArtifact[]
82
96
  return [...byId.values()]
83
97
  }
84
98
 
99
+ /** Whether one write came after another: by revision, else, before revisions, by version. */
100
+ function writtenAfter(later: PublishedArtifact, earlier: PublishedArtifact): boolean {
101
+ if (later.revision !== undefined && earlier.revision !== undefined) {
102
+ return later.revision > earlier.revision
103
+ }
104
+ return later.version > earlier.version
105
+ }
106
+
85
107
  /**
86
108
  * The titles of what a finished turn last tried to publish and could not: a refused attempt that no
87
109
  * later publish of the same artifact (a version, by its id) or the same title (a new one) replaced.
@@ -0,0 +1,49 @@
1
+ import { FileText } from "lucide-react"
2
+ import { ActivityStatusText } from "../components/activity-status"
3
+ import { useAgentMessages } from "../i18n"
4
+ import type { NormalizedTool } from "../parts"
5
+
6
+ /**
7
+ * An `open_artifact` call in the work trace: the Agent opened an artifact to read it, or to revise
8
+ * it. A calm step, as reading a file is; a failure says why, without the harness's prefix.
9
+ */
10
+ export function OpenArtifactToolView({ tool }: { tool: NormalizedTool }) {
11
+ const messages = useAgentMessages().artifacts
12
+ const title = openedTitle(tool)
13
+ const running = tool.state === "input-streaming" || tool.state === "input-available"
14
+ const failed = tool.state === "output-error"
15
+ const label = failed
16
+ ? messages.openFailed(title)
17
+ : running
18
+ ? messages.opening(title)
19
+ : messages.opened(title)
20
+
21
+ return (
22
+ <div className="min-w-0 space-y-1">
23
+ <div className="flex w-fit max-w-full items-center gap-1.5 text-[13px] leading-normal text-muted-foreground">
24
+ <FileText className="size-3.5 shrink-0" />
25
+ {running ? (
26
+ <ActivityStatusText label={label} className="font-medium shimmer" />
27
+ ) : (
28
+ <span className="min-w-0 truncate font-medium">{label}</span>
29
+ )}
30
+ </div>
31
+ {failed && tool.errorText ? (
32
+ <p className="pl-5 text-xs leading-relaxed whitespace-pre-wrap text-muted-foreground/80">
33
+ {tool.errorText.replace(/^\[SixbAgent\] open_artifact refused: /, "")}
34
+ </p>
35
+ ) : null}
36
+ </div>
37
+ )
38
+ }
39
+
40
+ /** The title the artifact has, once opened; until then, nothing the Agent could make up. */
41
+ function openedTitle(tool: NormalizedTool): string {
42
+ const output = tool.output
43
+ return typeof output === "object" &&
44
+ output !== null &&
45
+ "title" in output &&
46
+ typeof output.title === "string"
47
+ ? output.title
48
+ : ""
49
+ }