@sixb/app 0.1.18 → 0.2.1

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 (628) hide show
  1. package/README.md +2 -2
  2. package/assets/connector-icons/README.md +2 -1
  3. package/assets/connector-icons/fleetio.ico +0 -0
  4. package/dist/agent/activity-label.d.ts.map +1 -1
  5. package/dist/agent/agent-chat.d.ts.map +1 -1
  6. package/dist/agent/background/background-card.d.ts +10 -0
  7. package/dist/agent/background/background-card.d.ts.map +1 -0
  8. package/dist/agent/background/background-tool-row.d.ts +9 -0
  9. package/dist/agent/background/background-tool-row.d.ts.map +1 -0
  10. package/dist/agent/background/context.d.ts +23 -0
  11. package/dist/agent/background/context.d.ts.map +1 -0
  12. package/dist/agent/background/interpret.d.ts +116 -0
  13. package/dist/agent/background/interpret.d.ts.map +1 -0
  14. package/dist/agent/bash/bash-tool-view.d.ts.map +1 -1
  15. package/dist/agent/bash/interpret.d.ts +5 -1
  16. package/dist/agent/bash/interpret.d.ts.map +1 -1
  17. package/dist/agent/components/agent-message-body.d.ts.map +1 -1
  18. package/dist/agent/components/composer-menu.d.ts +3 -1
  19. package/dist/agent/components/composer-menu.d.ts.map +1 -1
  20. package/dist/agent/components/composer-place.d.ts +11 -0
  21. package/dist/agent/components/composer-place.d.ts.map +1 -0
  22. package/dist/agent/components/composer.d.ts +7 -1
  23. package/dist/agent/components/composer.d.ts.map +1 -1
  24. package/dist/agent/components/computer-place.d.ts +25 -0
  25. package/dist/agent/components/computer-place.d.ts.map +1 -0
  26. package/dist/agent/components/context-meter.d.ts +41 -0
  27. package/dist/agent/components/context-meter.d.ts.map +1 -0
  28. package/dist/agent/components/message-parts.d.ts +9 -1
  29. package/dist/agent/components/message-parts.d.ts.map +1 -1
  30. package/dist/agent/components/message-view.d.ts +18 -3
  31. package/dist/agent/components/message-view.d.ts.map +1 -1
  32. package/dist/agent/components/transcript.d.ts +13 -0
  33. package/dist/agent/components/transcript.d.ts.map +1 -1
  34. package/dist/agent/components/web-fetch-tool-view.d.ts.map +1 -1
  35. package/dist/agent/conversation.d.ts +17 -2
  36. package/dist/agent/conversation.d.ts.map +1 -1
  37. package/dist/agent/delegation/child-parts.d.ts +2 -0
  38. package/dist/agent/delegation/child-parts.d.ts.map +1 -1
  39. package/dist/agent/delegation/use-children.d.ts +65 -5
  40. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  41. package/dist/agent/format.d.ts +4 -0
  42. package/dist/agent/format.d.ts.map +1 -1
  43. package/dist/agent/hooks/use-agent-conversation.d.ts +33 -3
  44. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  45. package/dist/agent/hooks/use-new-thread-place.d.ts +48 -0
  46. package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -0
  47. package/dist/agent/hooks/use-thread-lists.d.ts +68 -4
  48. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  49. package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
  50. package/dist/agent/i18n/en.d.ts +125 -0
  51. package/dist/agent/i18n/en.d.ts.map +1 -1
  52. package/dist/agent/i18n/fr.d.ts.map +1 -1
  53. package/dist/agent/i18n/index.d.ts +224 -0
  54. package/dist/agent/i18n/index.d.ts.map +1 -1
  55. package/dist/agent/live-run.d.ts +4 -0
  56. package/dist/agent/live-run.d.ts.map +1 -1
  57. package/dist/agent/observed-conversation.d.ts.map +1 -1
  58. package/dist/agent/parts.d.ts +2 -0
  59. package/dist/agent/parts.d.ts.map +1 -1
  60. package/dist/agent/run-presentation.d.ts +2 -0
  61. package/dist/agent/run-presentation.d.ts.map +1 -1
  62. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  63. package/dist/agent/types.d.ts +3 -1
  64. package/dist/agent/types.d.ts.map +1 -1
  65. package/dist/agent/utils/web-fetch.d.ts +33 -1
  66. package/dist/agent/utils/web-fetch.d.ts.map +1 -1
  67. package/dist/agent/utils/web-search.d.ts +14 -2
  68. package/dist/agent/utils/web-search.d.ts.map +1 -1
  69. package/dist/{chunk-pkcm8rn8.js → chunk-4j3c3p72.js} +1 -1
  70. package/dist/{chunk-sw3pyqgy.js → chunk-4mprsd2n.js} +15 -34
  71. package/dist/chunk-4mprsd2n.js.map +10 -0
  72. package/dist/{chunk-gq6xek89.js → chunk-7fj9cfkw.js} +3 -3
  73. package/dist/chunk-7fj9cfkw.js.map +10 -0
  74. package/dist/{chunk-md3p7qdt.js → chunk-dgs11da9.js} +3 -3
  75. package/dist/{chunk-md3p7qdt.js.map → chunk-dgs11da9.js.map} +2 -2
  76. package/dist/{chunk-hdbmj6f0.js → chunk-j8g956dt.js} +1 -1
  77. package/dist/{chunk-6n5pdqp0.js → chunk-j98jkx60.js} +3 -3
  78. package/dist/{chunk-6n5pdqp0.js.map → chunk-j98jkx60.js.map} +2 -2
  79. package/dist/{chunk-k4epnkcr.js → chunk-kwbw4dyk.js} +1 -1
  80. package/dist/{chunk-53z5653y.js → chunk-q69001w3.js} +78 -90
  81. package/dist/chunk-q69001w3.js.map +11 -0
  82. package/dist/{chunk-btky7c9w.js → chunk-ytadd0b5.js} +4205 -2203
  83. package/dist/{chunk-btky7c9w.js.map → chunk-ytadd0b5.js.map} +44 -36
  84. package/dist/codegen.d.ts.map +1 -1
  85. package/dist/index.d.ts +5 -3
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +31 -16
  88. package/dist/index.js.map +5 -5
  89. package/dist/locale-messages.d.ts +8 -20
  90. package/dist/locale-messages.d.ts.map +1 -1
  91. package/dist/locale.d.ts +8 -20
  92. package/dist/locale.d.ts.map +1 -1
  93. package/dist/locale.js +1 -1
  94. package/dist/metadata.d.ts.map +1 -1
  95. package/dist/pages/{observability → console}/action-run.d.ts +1 -1
  96. package/dist/pages/console/action-run.d.ts.map +1 -0
  97. package/dist/pages/console/data/connectors.d.ts +5 -0
  98. package/dist/pages/console/data/connectors.d.ts.map +1 -0
  99. package/dist/pages/{data → console/data}/datasets.d.ts +3 -3
  100. package/dist/pages/console/data/datasets.d.ts.map +1 -0
  101. package/dist/pages/console/data/live-updates.d.ts.map +1 -0
  102. package/dist/pages/{data → console/data}/messages.d.ts +19 -1
  103. package/dist/pages/console/data/messages.d.ts.map +1 -0
  104. package/dist/pages/{data → console/data}/pipeline-canvas.d.ts +1 -1
  105. package/dist/pages/console/data/pipeline-canvas.d.ts.map +1 -0
  106. package/dist/pages/console/data/pipelines.d.ts +9 -0
  107. package/dist/pages/console/data/pipelines.d.ts.map +1 -0
  108. package/dist/pages/console/data/producer.d.ts +21 -0
  109. package/dist/pages/console/data/producer.d.ts.map +1 -0
  110. package/dist/pages/{data → console/data}/projections.d.ts +3 -3
  111. package/dist/pages/console/data/projections.d.ts.map +1 -0
  112. package/dist/pages/console/data/schema.d.ts.map +1 -0
  113. package/dist/pages/console/data/shared.d.ts.map +1 -0
  114. package/dist/pages/console/data/sync-button.d.ts.map +1 -0
  115. package/dist/pages/console/data/syncs.d.ts +5 -0
  116. package/dist/pages/console/data/syncs.d.ts.map +1 -0
  117. package/dist/pages/console/live-updates.d.ts.map +1 -0
  118. package/dist/pages/{observability → console}/logs.d.ts +2 -2
  119. package/dist/pages/console/logs.d.ts.map +1 -0
  120. package/dist/pages/{observability → console}/messages.d.ts +8 -100
  121. package/dist/pages/console/messages.d.ts.map +1 -0
  122. package/dist/pages/console/ontology/action-runs.d.ts +16 -0
  123. package/dist/pages/console/ontology/action-runs.d.ts.map +1 -0
  124. package/dist/pages/console/ontology/actions.d.ts +6 -0
  125. package/dist/pages/console/ontology/actions.d.ts.map +1 -0
  126. package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -0
  127. package/dist/pages/console/ontology/components/action-param-null-control.d.ts.map +1 -0
  128. package/dist/pages/console/ontology/components/collection-toolbar.d.ts.map +1 -0
  129. package/dist/pages/console/ontology/components/common.d.ts.map +1 -0
  130. package/dist/pages/console/ontology/components/file-ref-upload-field.d.ts.map +1 -0
  131. package/dist/pages/console/ontology/components/object-filter-popover.d.ts.map +1 -0
  132. package/dist/pages/console/ontology/components/object-icon.d.ts.map +1 -0
  133. package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -0
  134. package/dist/pages/console/ontology/components/telemetry-chart.d.ts.map +1 -0
  135. package/dist/pages/console/ontology/components/telemetry-grid.d.ts.map +1 -0
  136. package/dist/pages/console/ontology/components/telemetry-tile.d.ts.map +1 -0
  137. package/dist/pages/console/ontology/components/telemetry-value.d.ts.map +1 -0
  138. package/dist/pages/console/ontology/components/usage-bar.d.ts.map +1 -0
  139. package/dist/pages/console/ontology/components/user-picker.d.ts.map +1 -0
  140. package/dist/pages/console/ontology/graph.d.ts +6 -0
  141. package/dist/pages/console/ontology/graph.d.ts.map +1 -0
  142. package/dist/pages/console/ontology/hooks/object-live-updates.d.ts.map +1 -0
  143. package/dist/pages/console/ontology/hooks/object-telemetry-updates.d.ts.map +1 -0
  144. package/dist/pages/console/ontology/hooks/object-type-counts.d.ts.map +1 -0
  145. package/dist/pages/console/ontology/hooks/rule-live-updates.d.ts.map +1 -0
  146. package/dist/pages/console/ontology/hooks/workflow-live-updates.d.ts.map +1 -0
  147. package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -0
  148. package/dist/pages/console/ontology/lib/format-value.d.ts.map +1 -0
  149. package/dist/pages/console/ontology/lib/labels.d.ts.map +1 -0
  150. package/dist/pages/{ontology → console/ontology}/lib/live-update-keys.d.ts +2 -0
  151. package/dist/pages/console/ontology/lib/live-update-keys.d.ts.map +1 -0
  152. package/dist/pages/console/ontology/lib/object-query.d.ts.map +1 -0
  153. package/dist/pages/console/ontology/lib/ontology-graph-layout.d.ts.map +1 -0
  154. package/dist/pages/console/ontology/lib/ontology-graph-links.d.ts.map +1 -0
  155. package/dist/pages/console/ontology/lib/telemetry-history.d.ts.map +1 -0
  156. package/dist/pages/console/ontology/lib/time.d.ts.map +1 -0
  157. package/dist/pages/console/ontology/lib/user-preferences.d.ts.map +1 -0
  158. package/dist/pages/console/ontology/lineage/action-name.d.ts +6 -0
  159. package/dist/pages/console/ontology/lineage/action-name.d.ts.map +1 -0
  160. package/dist/pages/console/ontology/lineage/dataset-steps.d.ts +15 -0
  161. package/dist/pages/console/ontology/lineage/dataset-steps.d.ts.map +1 -0
  162. package/dist/pages/console/ontology/lineage/links.d.ts +13 -0
  163. package/dist/pages/console/ontology/lineage/links.d.ts.map +1 -0
  164. package/dist/pages/console/ontology/lineage/messages.d.ts +108 -0
  165. package/dist/pages/console/ontology/lineage/messages.d.ts.map +1 -0
  166. package/dist/pages/console/ontology/lineage/model.d.ts +84 -0
  167. package/dist/pages/console/ontology/lineage/model.d.ts.map +1 -0
  168. package/dist/pages/console/ontology/lineage/properties-panel.d.ts +17 -0
  169. package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -0
  170. package/dist/pages/console/ontology/lineage/property-source.d.ts +12 -0
  171. package/dist/pages/console/ontology/lineage/property-source.d.ts.map +1 -0
  172. package/dist/pages/console/ontology/lineage/query.d.ts +8 -0
  173. package/dist/pages/console/ontology/lineage/query.d.ts.map +1 -0
  174. package/dist/pages/console/ontology/lineage/requester.d.ts +8 -0
  175. package/dist/pages/console/ontology/lineage/requester.d.ts.map +1 -0
  176. package/dist/pages/console/ontology/lineage/separated.d.ts +16 -0
  177. package/dist/pages/console/ontology/lineage/separated.d.ts.map +1 -0
  178. package/dist/pages/console/ontology/lineage/summary.d.ts +10 -0
  179. package/dist/pages/console/ontology/lineage/summary.d.ts.map +1 -0
  180. package/dist/pages/console/ontology/lineage/trail-step.d.ts +20 -0
  181. package/dist/pages/console/ontology/lineage/trail-step.d.ts.map +1 -0
  182. package/dist/pages/console/ontology/lineage/trail.d.ts +21 -0
  183. package/dist/pages/console/ontology/lineage/trail.d.ts.map +1 -0
  184. package/dist/pages/console/ontology/lineage/value-lineage-panel.d.ts +26 -0
  185. package/dist/pages/console/ontology/lineage/value-lineage-panel.d.ts.map +1 -0
  186. package/dist/pages/console/ontology/object-page.d.ts.map +1 -0
  187. package/dist/pages/console/ontology/object-type.d.ts +3 -0
  188. package/dist/pages/console/ontology/object-type.d.ts.map +1 -0
  189. package/dist/pages/console/ontology/object-types.d.ts +7 -0
  190. package/dist/pages/console/ontology/object-types.d.ts.map +1 -0
  191. package/dist/pages/console/ontology/objects.d.ts +6 -0
  192. package/dist/pages/console/ontology/objects.d.ts.map +1 -0
  193. package/dist/pages/{ontology → console/ontology}/rules.d.ts +3 -3
  194. package/dist/pages/console/ontology/rules.d.ts.map +1 -0
  195. package/dist/pages/{ontology → console/ontology}/workflow.d.ts +1 -1
  196. package/dist/pages/console/ontology/workflow.d.ts.map +1 -0
  197. package/dist/pages/{ontology → console/ontology}/workflows/agent-execution-panel.d.ts +1 -1
  198. package/dist/pages/console/ontology/workflows/agent-execution-panel.d.ts.map +1 -0
  199. package/dist/pages/console/ontology/workflows/intervention-panel.d.ts.map +1 -0
  200. package/dist/pages/{ontology → console/ontology}/workflows/node-execution-panel.d.ts +1 -1
  201. package/dist/pages/console/ontology/workflows/node-execution-panel.d.ts.map +1 -0
  202. package/dist/pages/console/ontology/workflows/request-run-dialog.d.ts.map +1 -0
  203. package/dist/pages/console/ontology/workflows/run-debug-section.d.ts.map +1 -0
  204. package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -0
  205. package/dist/pages/console/ontology/workflows/run-progress.d.ts.map +1 -0
  206. package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -0
  207. package/dist/pages/console/ontology/workflows/status-badge.d.ts.map +1 -0
  208. package/dist/pages/console/ontology/workflows/utils.d.ts.map +1 -0
  209. package/dist/pages/console/ontology/workflows/workflow-card.d.ts.map +1 -0
  210. package/dist/pages/console/ontology/workflows.d.ts +3 -0
  211. package/dist/pages/console/ontology/workflows.d.ts.map +1 -0
  212. package/dist/pages/{observability → console}/workflow-run.d.ts +1 -1
  213. package/dist/pages/console/workflow-run.d.ts.map +1 -0
  214. package/dist/pages/routes.d.ts +16 -8
  215. package/dist/pages/routes.d.ts.map +1 -1
  216. package/dist/pages/section-page.d.ts +2 -6
  217. package/dist/pages/section-page.d.ts.map +1 -1
  218. package/dist/pages/section-ui.d.ts +15 -0
  219. package/dist/pages/section-ui.d.ts.map +1 -1
  220. package/dist/pages/settings/activity/calendar.d.ts.map +1 -0
  221. package/dist/pages/settings/activity/connections.d.ts.map +1 -0
  222. package/dist/pages/settings/activity/format.d.ts.map +1 -0
  223. package/dist/pages/{observability → settings}/activity/messages.d.ts +1 -1
  224. package/dist/pages/settings/activity/messages.d.ts.map +1 -0
  225. package/dist/pages/settings/activity/meta-items.d.ts.map +1 -0
  226. package/dist/pages/settings/activity/page.d.ts +6 -0
  227. package/dist/pages/settings/activity/page.d.ts.map +1 -0
  228. package/dist/pages/{observability → settings}/activity/period.d.ts +1 -1
  229. package/dist/pages/settings/activity/period.d.ts.map +1 -0
  230. package/dist/pages/settings/activity/steps.d.ts.map +1 -0
  231. package/dist/pages/settings/activity/thread.d.ts +6 -0
  232. package/dist/pages/settings/activity/thread.d.ts.map +1 -0
  233. package/dist/pages/settings/activity/timeline.d.ts.map +1 -0
  234. package/dist/pages/settings/activity/users.d.ts.map +1 -0
  235. package/dist/pages/settings/controls.d.ts +1 -1
  236. package/dist/pages/settings/controls.d.ts.map +1 -1
  237. package/dist/pages/settings/members.d.ts +4 -1
  238. package/dist/pages/settings/members.d.ts.map +1 -1
  239. package/dist/pages/settings/memory-editors.d.ts +55 -0
  240. package/dist/pages/settings/memory-editors.d.ts.map +1 -0
  241. package/dist/pages/settings/memory-entries.d.ts +2 -5
  242. package/dist/pages/settings/memory-entries.d.ts.map +1 -1
  243. package/dist/pages/settings/memory-files.d.ts +17 -14
  244. package/dist/pages/settings/memory-files.d.ts.map +1 -1
  245. package/dist/pages/settings/memory-history.d.ts +5 -3
  246. package/dist/pages/settings/memory-history.d.ts.map +1 -1
  247. package/dist/pages/settings/memory-note.d.ts +15 -0
  248. package/dist/pages/settings/memory-note.d.ts.map +1 -0
  249. package/dist/pages/settings/memory.d.ts +3 -17
  250. package/dist/pages/settings/memory.d.ts.map +1 -1
  251. package/dist/pages/settings/messages.d.ts +76 -16
  252. package/dist/pages/settings/messages.d.ts.map +1 -1
  253. package/dist/pages/settings/service-accounts.d.ts +8 -2
  254. package/dist/pages/settings/service-accounts.d.ts.map +1 -1
  255. package/dist/pages/settings/usage/breakdown.d.ts +17 -0
  256. package/dist/pages/settings/usage/breakdown.d.ts.map +1 -0
  257. package/dist/pages/settings/usage/call-detail.d.ts +9 -0
  258. package/dist/pages/settings/usage/call-detail.d.ts.map +1 -0
  259. package/dist/pages/settings/usage/filter-menu.d.ts +28 -0
  260. package/dist/pages/settings/usage/filter-menu.d.ts.map +1 -0
  261. package/dist/pages/{observability/ai-usage → settings/usage}/format.d.ts +0 -53
  262. package/dist/pages/settings/usage/format.d.ts.map +1 -0
  263. package/dist/pages/settings/usage/limits.d.ts.map +1 -0
  264. package/dist/pages/settings/usage/messages.d.ts +615 -0
  265. package/dist/pages/settings/usage/messages.d.ts.map +1 -0
  266. package/dist/pages/settings/usage/page.d.ts +6 -0
  267. package/dist/pages/settings/usage/page.d.ts.map +1 -0
  268. package/dist/pages/settings/usage/runs.d.ts +17 -0
  269. package/dist/pages/settings/usage/runs.d.ts.map +1 -0
  270. package/dist/pages/settings/usage/segmented.d.ts +11 -0
  271. package/dist/pages/settings/usage/segmented.d.ts.map +1 -0
  272. package/dist/pages/settings/usage/spend-chart.d.ts +22 -0
  273. package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -0
  274. package/dist/pages/settings/usage/spend-model.d.ts +133 -0
  275. package/dist/pages/settings/usage/spend-model.d.ts.map +1 -0
  276. package/dist/pages/values.d.ts +10 -2
  277. package/dist/pages/values.d.ts.map +1 -1
  278. package/dist/pages.d.ts +21 -23
  279. package/dist/pages.d.ts.map +1 -1
  280. package/dist/pages.js +24976 -22781
  281. package/dist/pages.js.map +87 -66
  282. package/dist/sections/catalog.d.ts +10 -6
  283. package/dist/sections/catalog.d.ts.map +1 -1
  284. package/dist/sections/counts.d.ts.map +1 -1
  285. package/dist/sections/sections.d.ts +11 -18
  286. package/dist/sections/sections.d.ts.map +1 -1
  287. package/dist/server.js +128 -37
  288. package/dist/server.js.map +4 -4
  289. package/dist/session.d.ts +6 -0
  290. package/dist/session.d.ts.map +1 -1
  291. package/dist/shared-unavailable.d.ts +14 -0
  292. package/dist/shared-unavailable.d.ts.map +1 -0
  293. package/dist/shell/user-menu.d.ts +1 -1
  294. package/package.json +4 -4
  295. package/src/agent/activity-label.ts +6 -2
  296. package/src/agent/agent-chat.tsx +4 -0
  297. package/src/agent/agent.css +47 -0
  298. package/src/agent/background/background-card.tsx +308 -0
  299. package/src/agent/background/background-tool-row.tsx +58 -0
  300. package/src/agent/background/context.ts +26 -0
  301. package/src/agent/background/interpret.ts +356 -0
  302. package/src/agent/bash/bash-tool-view.tsx +9 -4
  303. package/src/agent/bash/interpret.ts +29 -3
  304. package/src/agent/components/agent-message-body.tsx +13 -3
  305. package/src/agent/components/approval-card.tsx +1 -1
  306. package/src/agent/components/composer-menu.tsx +4 -1
  307. package/src/agent/components/composer-place.tsx +144 -0
  308. package/src/agent/components/composer.tsx +18 -0
  309. package/src/agent/components/computer-place.tsx +136 -0
  310. package/src/agent/components/context-meter.tsx +419 -0
  311. package/src/agent/components/conversation-panel.tsx +1 -1
  312. package/src/agent/components/message-parts.tsx +72 -6
  313. package/src/agent/components/message-view.tsx +74 -17
  314. package/src/agent/components/transcript.tsx +62 -5
  315. package/src/agent/components/web-fetch-tool-view.tsx +94 -29
  316. package/src/agent/conversation.ts +33 -3
  317. package/src/agent/delegation/child-parts.tsx +1 -1
  318. package/src/agent/format.ts +21 -1
  319. package/src/agent/hooks/use-agent-conversation.ts +200 -6
  320. package/src/agent/hooks/use-new-thread-place.ts +170 -0
  321. package/src/agent/hooks/use-thread-stream.ts +7 -0
  322. package/src/agent/i18n/en.ts +123 -0
  323. package/src/agent/i18n/fr.ts +121 -0
  324. package/src/agent/live-run.ts +24 -3
  325. package/src/agent/observed-conversation.tsx +3 -0
  326. package/src/agent/parts.ts +10 -0
  327. package/src/agent/run-presentation.ts +3 -0
  328. package/src/agent/tool-views/built-in.tsx +26 -11
  329. package/src/agent/types.ts +4 -0
  330. package/src/agent/utils/web-fetch.ts +89 -10
  331. package/src/agent/utils/web-search.ts +67 -28
  332. package/src/codegen.ts +134 -18
  333. package/src/index.ts +4 -2
  334. package/src/locale-messages.ts +12 -31
  335. package/src/metadata.ts +1 -33
  336. package/src/pages/{observability → console}/action-run.tsx +11 -10
  337. package/src/pages/{data → console/data}/connectors.tsx +11 -11
  338. package/src/pages/{data → console/data}/datasets.tsx +35 -16
  339. package/src/pages/{data → console/data}/messages.ts +13 -1
  340. package/src/pages/{data → console/data}/pipeline-canvas.tsx +1 -1
  341. package/src/pages/{data → console/data}/pipelines.tsx +11 -11
  342. package/src/pages/console/data/producer.tsx +90 -0
  343. package/src/pages/{data → console/data}/projections.tsx +11 -11
  344. package/src/pages/{data → console/data}/schema.tsx +1 -1
  345. package/src/pages/{data → console/data}/shared.tsx +2 -1
  346. package/src/pages/{data → console/data}/sync-button.tsx +1 -1
  347. package/src/pages/{data → console/data}/syncs.tsx +12 -12
  348. package/src/pages/{observability → console}/logs.tsx +10 -10
  349. package/src/pages/{observability → console}/messages.ts +9 -107
  350. package/src/pages/console/ontology/action-runs.tsx +247 -0
  351. package/src/pages/{ontology → console/ontology}/actions.tsx +57 -10
  352. package/src/pages/{ontology → console/ontology}/components/action-button.tsx +5 -5
  353. package/src/pages/{ontology → console/ontology}/graph.tsx +6 -6
  354. package/src/pages/{ontology → console/ontology}/lib/live-update-keys.ts +10 -1
  355. package/src/pages/console/ontology/lineage/action-name.ts +19 -0
  356. package/src/pages/console/ontology/lineage/dataset-steps.tsx +127 -0
  357. package/src/pages/console/ontology/lineage/links.tsx +45 -0
  358. package/src/pages/console/ontology/lineage/messages.ts +117 -0
  359. package/src/pages/console/ontology/lineage/model.ts +176 -0
  360. package/src/pages/console/ontology/lineage/properties-panel.tsx +95 -0
  361. package/src/pages/console/ontology/lineage/property-source.tsx +60 -0
  362. package/src/pages/console/ontology/lineage/query.ts +21 -0
  363. package/src/pages/console/ontology/lineage/requester.tsx +73 -0
  364. package/src/pages/console/ontology/lineage/separated.tsx +33 -0
  365. package/src/pages/console/ontology/lineage/summary.tsx +58 -0
  366. package/src/pages/console/ontology/lineage/trail-step.tsx +71 -0
  367. package/src/pages/console/ontology/lineage/trail.tsx +346 -0
  368. package/src/pages/console/ontology/lineage/value-lineage-panel.tsx +146 -0
  369. package/src/pages/{ontology → console/ontology}/object-page.tsx +22 -14
  370. package/src/pages/{ontology → console/ontology}/object-type.tsx +6 -6
  371. package/src/pages/{ontology → console/ontology}/object-types.tsx +7 -7
  372. package/src/pages/{ontology → console/ontology}/objects.tsx +6 -6
  373. package/src/pages/{ontology → console/ontology}/rules.tsx +10 -10
  374. package/src/pages/{ontology → console/ontology}/workflow.tsx +9 -9
  375. package/src/pages/{ontology → console/ontology}/workflows/agent-execution-panel.tsx +3 -3
  376. package/src/pages/{ontology → console/ontology}/workflows/intervention-panel.tsx +1 -1
  377. package/src/pages/{ontology → console/ontology}/workflows/node-execution-panel.tsx +2 -2
  378. package/src/pages/{ontology → console/ontology}/workflows/request-run-dialog.tsx +1 -1
  379. package/src/pages/{ontology → console/ontology}/workflows/run-debug-section.tsx +1 -1
  380. package/src/pages/{ontology → console/ontology}/workflows/utils.ts +2 -2
  381. package/src/pages/{ontology → console/ontology}/workflows/workflow-card.tsx +2 -2
  382. package/src/pages/{ontology → console/ontology}/workflows.tsx +5 -5
  383. package/src/pages/{observability → console}/workflow-run.tsx +18 -13
  384. package/src/pages/routes.ts +38 -16
  385. package/src/pages/section-page.tsx +3 -13
  386. package/src/pages/section-ui.tsx +74 -0
  387. package/src/pages/{observability → settings}/activity/messages.ts +1 -1
  388. package/src/pages/{observability → settings}/activity/page.tsx +3 -3
  389. package/src/pages/{observability → settings}/activity/period.ts +1 -1
  390. package/src/pages/{observability → settings}/activity/thread.tsx +5 -5
  391. package/src/pages/{observability → settings}/activity/timeline.tsx +2 -2
  392. package/src/pages/settings/controls.tsx +9 -4
  393. package/src/pages/settings/members.tsx +493 -203
  394. package/src/pages/settings/memory-editors.tsx +310 -0
  395. package/src/pages/settings/memory-entries.ts +10 -22
  396. package/src/pages/settings/memory-files.ts +37 -53
  397. package/src/pages/settings/memory-history.tsx +185 -194
  398. package/src/pages/settings/memory-note.tsx +710 -0
  399. package/src/pages/settings/memory.tsx +287 -776
  400. package/src/pages/settings/messages.ts +95 -26
  401. package/src/pages/settings/service-accounts.tsx +14 -12
  402. package/src/pages/settings/usage/breakdown.tsx +424 -0
  403. package/src/pages/settings/usage/call-detail.tsx +283 -0
  404. package/src/pages/settings/usage/filter-menu.tsx +183 -0
  405. package/src/pages/{observability/ai-usage → settings/usage}/format.ts +0 -156
  406. package/src/pages/settings/usage/messages.ts +566 -0
  407. package/src/pages/settings/usage/page.tsx +567 -0
  408. package/src/pages/settings/usage/runs.tsx +774 -0
  409. package/src/pages/settings/usage/segmented.tsx +38 -0
  410. package/src/pages/settings/usage/spend-chart.tsx +334 -0
  411. package/src/pages/settings/usage/spend-model.ts +336 -0
  412. package/src/pages/values.tsx +25 -3
  413. package/src/pages.ts +26 -30
  414. package/src/sections/catalog.ts +93 -89
  415. package/src/sections/counts.ts +31 -12
  416. package/src/sections/sections.tsx +29 -48
  417. package/src/session.ts +12 -0
  418. package/src/shared-unavailable.ts +13 -0
  419. package/src/shell/user-menu.tsx +1 -1
  420. package/dist/chunk-53z5653y.js.map +0 -11
  421. package/dist/chunk-gq6xek89.js.map +0 -10
  422. package/dist/chunk-sw3pyqgy.js.map +0 -10
  423. package/dist/chunk-yvhzn4ye.js +0 -98
  424. package/dist/chunk-yvhzn4ye.js.map +0 -10
  425. package/dist/pages/data/connectors.d.ts +0 -5
  426. package/dist/pages/data/connectors.d.ts.map +0 -1
  427. package/dist/pages/data/datasets.d.ts.map +0 -1
  428. package/dist/pages/data/live-updates.d.ts.map +0 -1
  429. package/dist/pages/data/messages.d.ts.map +0 -1
  430. package/dist/pages/data/pipeline-canvas.d.ts.map +0 -1
  431. package/dist/pages/data/pipelines.d.ts +0 -9
  432. package/dist/pages/data/pipelines.d.ts.map +0 -1
  433. package/dist/pages/data/projections.d.ts.map +0 -1
  434. package/dist/pages/data/schema.d.ts.map +0 -1
  435. package/dist/pages/data/shared.d.ts.map +0 -1
  436. package/dist/pages/data/sync-button.d.ts.map +0 -1
  437. package/dist/pages/data/syncs.d.ts +0 -5
  438. package/dist/pages/data/syncs.d.ts.map +0 -1
  439. package/dist/pages/observability/action-run.d.ts.map +0 -1
  440. package/dist/pages/observability/activity/calendar.d.ts.map +0 -1
  441. package/dist/pages/observability/activity/connections.d.ts.map +0 -1
  442. package/dist/pages/observability/activity/format.d.ts.map +0 -1
  443. package/dist/pages/observability/activity/messages.d.ts.map +0 -1
  444. package/dist/pages/observability/activity/meta-items.d.ts.map +0 -1
  445. package/dist/pages/observability/activity/page.d.ts +0 -6
  446. package/dist/pages/observability/activity/page.d.ts.map +0 -1
  447. package/dist/pages/observability/activity/period.d.ts.map +0 -1
  448. package/dist/pages/observability/activity/steps.d.ts.map +0 -1
  449. package/dist/pages/observability/activity/thread.d.ts +0 -6
  450. package/dist/pages/observability/activity/thread.d.ts.map +0 -1
  451. package/dist/pages/observability/activity/timeline.d.ts.map +0 -1
  452. package/dist/pages/observability/activity/users.d.ts.map +0 -1
  453. package/dist/pages/observability/ai-usage/calls.d.ts +0 -27
  454. package/dist/pages/observability/ai-usage/calls.d.ts.map +0 -1
  455. package/dist/pages/observability/ai-usage/charts.d.ts +0 -23
  456. package/dist/pages/observability/ai-usage/charts.d.ts.map +0 -1
  457. package/dist/pages/observability/ai-usage/format.d.ts.map +0 -1
  458. package/dist/pages/observability/ai-usage/kinds.d.ts +0 -40
  459. package/dist/pages/observability/ai-usage/kinds.d.ts.map +0 -1
  460. package/dist/pages/observability/ai-usage/limits.d.ts.map +0 -1
  461. package/dist/pages/observability/ai-usage/messages.d.ts +0 -493
  462. package/dist/pages/observability/ai-usage/messages.d.ts.map +0 -1
  463. package/dist/pages/observability/ai-usage/page.d.ts +0 -6
  464. package/dist/pages/observability/ai-usage/page.d.ts.map +0 -1
  465. package/dist/pages/observability/live-updates.d.ts.map +0 -1
  466. package/dist/pages/observability/logs.d.ts.map +0 -1
  467. package/dist/pages/observability/messages.d.ts.map +0 -1
  468. package/dist/pages/observability/runs.d.ts +0 -7
  469. package/dist/pages/observability/runs.d.ts.map +0 -1
  470. package/dist/pages/observability/workflow-run.d.ts.map +0 -1
  471. package/dist/pages/ontology/actions.d.ts +0 -3
  472. package/dist/pages/ontology/actions.d.ts.map +0 -1
  473. package/dist/pages/ontology/components/action-button.d.ts.map +0 -1
  474. package/dist/pages/ontology/components/action-param-null-control.d.ts.map +0 -1
  475. package/dist/pages/ontology/components/collection-toolbar.d.ts.map +0 -1
  476. package/dist/pages/ontology/components/common.d.ts.map +0 -1
  477. package/dist/pages/ontology/components/file-ref-upload-field.d.ts.map +0 -1
  478. package/dist/pages/ontology/components/object-filter-popover.d.ts.map +0 -1
  479. package/dist/pages/ontology/components/object-icon.d.ts.map +0 -1
  480. package/dist/pages/ontology/components/object-query-bar.d.ts.map +0 -1
  481. package/dist/pages/ontology/components/telemetry-chart.d.ts.map +0 -1
  482. package/dist/pages/ontology/components/telemetry-grid.d.ts.map +0 -1
  483. package/dist/pages/ontology/components/telemetry-tile.d.ts.map +0 -1
  484. package/dist/pages/ontology/components/telemetry-value.d.ts.map +0 -1
  485. package/dist/pages/ontology/components/usage-bar.d.ts.map +0 -1
  486. package/dist/pages/ontology/components/user-picker.d.ts.map +0 -1
  487. package/dist/pages/ontology/graph.d.ts +0 -6
  488. package/dist/pages/ontology/graph.d.ts.map +0 -1
  489. package/dist/pages/ontology/hooks/object-live-updates.d.ts.map +0 -1
  490. package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts.map +0 -1
  491. package/dist/pages/ontology/hooks/object-type-counts.d.ts.map +0 -1
  492. package/dist/pages/ontology/hooks/rule-live-updates.d.ts.map +0 -1
  493. package/dist/pages/ontology/hooks/workflow-live-updates.d.ts.map +0 -1
  494. package/dist/pages/ontology/lib/action-params.d.ts.map +0 -1
  495. package/dist/pages/ontology/lib/format-value.d.ts.map +0 -1
  496. package/dist/pages/ontology/lib/labels.d.ts.map +0 -1
  497. package/dist/pages/ontology/lib/live-update-keys.d.ts.map +0 -1
  498. package/dist/pages/ontology/lib/object-query.d.ts.map +0 -1
  499. package/dist/pages/ontology/lib/ontology-graph-layout.d.ts.map +0 -1
  500. package/dist/pages/ontology/lib/ontology-graph-links.d.ts.map +0 -1
  501. package/dist/pages/ontology/lib/telemetry-history.d.ts.map +0 -1
  502. package/dist/pages/ontology/lib/time.d.ts.map +0 -1
  503. package/dist/pages/ontology/lib/user-preferences.d.ts.map +0 -1
  504. package/dist/pages/ontology/object-page.d.ts.map +0 -1
  505. package/dist/pages/ontology/object-type.d.ts +0 -3
  506. package/dist/pages/ontology/object-type.d.ts.map +0 -1
  507. package/dist/pages/ontology/object-types.d.ts +0 -7
  508. package/dist/pages/ontology/object-types.d.ts.map +0 -1
  509. package/dist/pages/ontology/objects.d.ts +0 -6
  510. package/dist/pages/ontology/objects.d.ts.map +0 -1
  511. package/dist/pages/ontology/rules.d.ts.map +0 -1
  512. package/dist/pages/ontology/workflow.d.ts.map +0 -1
  513. package/dist/pages/ontology/workflows/agent-execution-panel.d.ts.map +0 -1
  514. package/dist/pages/ontology/workflows/intervention-panel.d.ts.map +0 -1
  515. package/dist/pages/ontology/workflows/node-execution-panel.d.ts.map +0 -1
  516. package/dist/pages/ontology/workflows/request-run-dialog.d.ts.map +0 -1
  517. package/dist/pages/ontology/workflows/run-debug-section.d.ts.map +0 -1
  518. package/dist/pages/ontology/workflows/run-input-form.d.ts.map +0 -1
  519. package/dist/pages/ontology/workflows/run-progress.d.ts.map +0 -1
  520. package/dist/pages/ontology/workflows/schema-shape.d.ts.map +0 -1
  521. package/dist/pages/ontology/workflows/status-badge.d.ts.map +0 -1
  522. package/dist/pages/ontology/workflows/utils.d.ts.map +0 -1
  523. package/dist/pages/ontology/workflows/workflow-card.d.ts.map +0 -1
  524. package/dist/pages/ontology/workflows.d.ts +0 -3
  525. package/dist/pages/ontology/workflows.d.ts.map +0 -1
  526. package/dist/pages/settings/memory-contents.d.ts +0 -30
  527. package/dist/pages/settings/memory-contents.d.ts.map +0 -1
  528. package/src/pages/observability/ai-usage/calls.tsx +0 -585
  529. package/src/pages/observability/ai-usage/charts.tsx +0 -126
  530. package/src/pages/observability/ai-usage/kinds.tsx +0 -156
  531. package/src/pages/observability/ai-usage/messages.ts +0 -523
  532. package/src/pages/observability/ai-usage/page.tsx +0 -923
  533. package/src/pages/observability/runs.tsx +0 -732
  534. package/src/pages/settings/memory-contents.tsx +0 -173
  535. /package/dist/{chunk-pkcm8rn8.js.map → chunk-4j3c3p72.js.map} +0 -0
  536. /package/dist/{chunk-hdbmj6f0.js.map → chunk-j8g956dt.js.map} +0 -0
  537. /package/dist/{chunk-k4epnkcr.js.map → chunk-kwbw4dyk.js.map} +0 -0
  538. /package/dist/pages/{data → console/data}/live-updates.d.ts +0 -0
  539. /package/dist/pages/{data → console/data}/schema.d.ts +0 -0
  540. /package/dist/pages/{data → console/data}/shared.d.ts +0 -0
  541. /package/dist/pages/{data → console/data}/sync-button.d.ts +0 -0
  542. /package/dist/pages/{observability → console}/live-updates.d.ts +0 -0
  543. /package/dist/pages/{ontology → console/ontology}/components/action-button.d.ts +0 -0
  544. /package/dist/pages/{ontology → console/ontology}/components/action-param-null-control.d.ts +0 -0
  545. /package/dist/pages/{ontology → console/ontology}/components/collection-toolbar.d.ts +0 -0
  546. /package/dist/pages/{ontology → console/ontology}/components/common.d.ts +0 -0
  547. /package/dist/pages/{ontology → console/ontology}/components/file-ref-upload-field.d.ts +0 -0
  548. /package/dist/pages/{ontology → console/ontology}/components/object-filter-popover.d.ts +0 -0
  549. /package/dist/pages/{ontology → console/ontology}/components/object-icon.d.ts +0 -0
  550. /package/dist/pages/{ontology → console/ontology}/components/object-query-bar.d.ts +0 -0
  551. /package/dist/pages/{ontology → console/ontology}/components/telemetry-chart.d.ts +0 -0
  552. /package/dist/pages/{ontology → console/ontology}/components/telemetry-grid.d.ts +0 -0
  553. /package/dist/pages/{ontology → console/ontology}/components/telemetry-tile.d.ts +0 -0
  554. /package/dist/pages/{ontology → console/ontology}/components/telemetry-value.d.ts +0 -0
  555. /package/dist/pages/{ontology → console/ontology}/components/usage-bar.d.ts +0 -0
  556. /package/dist/pages/{ontology → console/ontology}/components/user-picker.d.ts +0 -0
  557. /package/dist/pages/{ontology → console/ontology}/hooks/object-live-updates.d.ts +0 -0
  558. /package/dist/pages/{ontology → console/ontology}/hooks/object-telemetry-updates.d.ts +0 -0
  559. /package/dist/pages/{ontology → console/ontology}/hooks/object-type-counts.d.ts +0 -0
  560. /package/dist/pages/{ontology → console/ontology}/hooks/rule-live-updates.d.ts +0 -0
  561. /package/dist/pages/{ontology → console/ontology}/hooks/workflow-live-updates.d.ts +0 -0
  562. /package/dist/pages/{ontology → console/ontology}/lib/action-params.d.ts +0 -0
  563. /package/dist/pages/{ontology → console/ontology}/lib/format-value.d.ts +0 -0
  564. /package/dist/pages/{ontology → console/ontology}/lib/labels.d.ts +0 -0
  565. /package/dist/pages/{ontology → console/ontology}/lib/object-query.d.ts +0 -0
  566. /package/dist/pages/{ontology → console/ontology}/lib/ontology-graph-layout.d.ts +0 -0
  567. /package/dist/pages/{ontology → console/ontology}/lib/ontology-graph-links.d.ts +0 -0
  568. /package/dist/pages/{ontology → console/ontology}/lib/telemetry-history.d.ts +0 -0
  569. /package/dist/pages/{ontology → console/ontology}/lib/time.d.ts +0 -0
  570. /package/dist/pages/{ontology → console/ontology}/lib/user-preferences.d.ts +0 -0
  571. /package/dist/pages/{ontology → console/ontology}/object-page.d.ts +0 -0
  572. /package/dist/pages/{ontology → console/ontology}/workflows/intervention-panel.d.ts +0 -0
  573. /package/dist/pages/{ontology → console/ontology}/workflows/request-run-dialog.d.ts +0 -0
  574. /package/dist/pages/{ontology → console/ontology}/workflows/run-debug-section.d.ts +0 -0
  575. /package/dist/pages/{ontology → console/ontology}/workflows/run-input-form.d.ts +0 -0
  576. /package/dist/pages/{ontology → console/ontology}/workflows/run-progress.d.ts +0 -0
  577. /package/dist/pages/{ontology → console/ontology}/workflows/schema-shape.d.ts +0 -0
  578. /package/dist/pages/{ontology → console/ontology}/workflows/status-badge.d.ts +0 -0
  579. /package/dist/pages/{ontology → console/ontology}/workflows/utils.d.ts +0 -0
  580. /package/dist/pages/{ontology → console/ontology}/workflows/workflow-card.d.ts +0 -0
  581. /package/dist/pages/{observability → settings}/activity/calendar.d.ts +0 -0
  582. /package/dist/pages/{observability → settings}/activity/connections.d.ts +0 -0
  583. /package/dist/pages/{observability → settings}/activity/format.d.ts +0 -0
  584. /package/dist/pages/{observability → settings}/activity/meta-items.d.ts +0 -0
  585. /package/dist/pages/{observability → settings}/activity/steps.d.ts +0 -0
  586. /package/dist/pages/{observability → settings}/activity/timeline.d.ts +0 -0
  587. /package/dist/pages/{observability → settings}/activity/users.d.ts +0 -0
  588. /package/dist/pages/{observability/ai-usage → settings/usage}/limits.d.ts +0 -0
  589. /package/src/pages/{data → console/data}/live-updates.ts +0 -0
  590. /package/src/pages/{observability → console}/live-updates.ts +0 -0
  591. /package/src/pages/{ontology → console/ontology}/components/action-param-null-control.tsx +0 -0
  592. /package/src/pages/{ontology → console/ontology}/components/collection-toolbar.tsx +0 -0
  593. /package/src/pages/{ontology → console/ontology}/components/common.tsx +0 -0
  594. /package/src/pages/{ontology → console/ontology}/components/file-ref-upload-field.tsx +0 -0
  595. /package/src/pages/{ontology → console/ontology}/components/object-filter-popover.tsx +0 -0
  596. /package/src/pages/{ontology → console/ontology}/components/object-icon.tsx +0 -0
  597. /package/src/pages/{ontology → console/ontology}/components/object-query-bar.tsx +0 -0
  598. /package/src/pages/{ontology → console/ontology}/components/telemetry-chart.tsx +0 -0
  599. /package/src/pages/{ontology → console/ontology}/components/telemetry-grid.tsx +0 -0
  600. /package/src/pages/{ontology → console/ontology}/components/telemetry-tile.tsx +0 -0
  601. /package/src/pages/{ontology → console/ontology}/components/telemetry-value.tsx +0 -0
  602. /package/src/pages/{ontology → console/ontology}/components/usage-bar.tsx +0 -0
  603. /package/src/pages/{ontology → console/ontology}/components/user-picker.tsx +0 -0
  604. /package/src/pages/{ontology → console/ontology}/hooks/object-live-updates.ts +0 -0
  605. /package/src/pages/{ontology → console/ontology}/hooks/object-telemetry-updates.ts +0 -0
  606. /package/src/pages/{ontology → console/ontology}/hooks/object-type-counts.ts +0 -0
  607. /package/src/pages/{ontology → console/ontology}/hooks/rule-live-updates.ts +0 -0
  608. /package/src/pages/{ontology → console/ontology}/hooks/workflow-live-updates.ts +0 -0
  609. /package/src/pages/{ontology → console/ontology}/lib/action-params.ts +0 -0
  610. /package/src/pages/{ontology → console/ontology}/lib/format-value.ts +0 -0
  611. /package/src/pages/{ontology → console/ontology}/lib/labels.ts +0 -0
  612. /package/src/pages/{ontology → console/ontology}/lib/object-query.ts +0 -0
  613. /package/src/pages/{ontology → console/ontology}/lib/ontology-graph-layout.ts +0 -0
  614. /package/src/pages/{ontology → console/ontology}/lib/ontology-graph-links.ts +0 -0
  615. /package/src/pages/{ontology → console/ontology}/lib/telemetry-history.ts +0 -0
  616. /package/src/pages/{ontology → console/ontology}/lib/time.ts +0 -0
  617. /package/src/pages/{ontology → console/ontology}/lib/user-preferences.ts +0 -0
  618. /package/src/pages/{ontology → console/ontology}/workflows/run-input-form.tsx +0 -0
  619. /package/src/pages/{ontology → console/ontology}/workflows/run-progress.tsx +0 -0
  620. /package/src/pages/{ontology → console/ontology}/workflows/schema-shape.tsx +0 -0
  621. /package/src/pages/{ontology → console/ontology}/workflows/status-badge.tsx +0 -0
  622. /package/src/pages/{observability → settings}/activity/calendar.tsx +0 -0
  623. /package/src/pages/{observability → settings}/activity/connections.tsx +0 -0
  624. /package/src/pages/{observability → settings}/activity/format.ts +0 -0
  625. /package/src/pages/{observability → settings}/activity/meta-items.tsx +0 -0
  626. /package/src/pages/{observability → settings}/activity/steps.ts +0 -0
  627. /package/src/pages/{observability → settings}/activity/users.tsx +0 -0
  628. /package/src/pages/{observability/ai-usage → settings/usage}/limits.tsx +0 -0
@@ -1,11 +1,15 @@
1
1
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@sixb/ui/components"
2
+ import { useLocale } from "@sixb/ui/lib/i18n"
2
3
  import { cn } from "@sixb/ui/lib/utils"
3
- import { BookmarkCheck, ChevronRight, FileX, Wrench } from "lucide-react"
4
+ import { ArrowUpRight, BookmarkCheck, ChevronRight, FileX, Wrench } from "lucide-react"
4
5
  import { memo, useState } from "react"
6
+ import { formatFileSize } from "../../artifacts/file-size"
5
7
  import { ReferencingMarkdown } from "../../artifacts/references/references"
8
+ import { viewerTargetKey } from "../../artifacts/target"
6
9
  import { latestWorkLabel } from "../activity-label"
7
10
  import { heldCallsInParts } from "../approvals"
8
11
  import { ArtifactCards } from "../artifact-card"
12
+ import { useArtifactPanel } from "../artifact-panel"
9
13
  import { generatedMedia } from "../bash/bash-tool-view"
10
14
  import { savedMemories } from "../bash/interpret"
11
15
  import { ModelMediaView } from "../bash/model-media-view"
@@ -13,7 +17,12 @@ import { ChildCards } from "../delegation/child-cards"
13
17
  import { describeDelegationTool, spawnedChildren } from "../delegation/interpret"
14
18
  import { useAgentMessages } from "../i18n"
15
19
  import { childQuestions, describeMessageAgent } from "../message-agent/interpret"
16
- import { type NormalizedPart, type NormalizedTool, toolResultValue } from "../parts"
20
+ import {
21
+ type NormalizedFile,
22
+ type NormalizedPart,
23
+ type NormalizedTool,
24
+ toolResultValue,
25
+ } from "../parts"
17
26
  import { turnArtifacts, unpublishedTitles } from "../publish-artifact/interpret"
18
27
  import { builtInToolView } from "../tool-views/built-in"
19
28
  import { AnswerToolViews, ProjectToolView, useAgentToolView } from "../tool-views/registry"
@@ -298,16 +307,73 @@ function ToolCallRow({
298
307
  parts: readonly NormalizedPart[]
299
308
  }) {
300
309
  const view = useAgentToolView(tool.toolName)
301
- if (view?.placement === "work") {
302
- return (
310
+ const row =
311
+ view?.placement === "work" ? (
303
312
  <ProjectToolView
304
313
  view={view}
305
314
  tool={tool}
306
315
  fallback={<BuiltInToolRow tool={tool} parts={parts} />}
307
316
  />
317
+ ) : (
318
+ <BuiltInToolRow tool={tool} parts={parts} />
308
319
  )
309
- }
310
- return <BuiltInToolRow tool={tool} parts={parts} />
320
+ if (!tool.outputFile) return row
321
+
322
+ return (
323
+ <div className="min-w-0">
324
+ {row}
325
+ <SavedOutputLink file={tool.outputFile} toolName={tool.toolName} />
326
+ </div>
327
+ )
328
+ }
329
+
330
+ /**
331
+ * Under a call whose output was too large for the model's context, the whole output it saved: it
332
+ * opens beside the conversation, or in a new tab where there is no panel.
333
+ */
334
+ export function SavedOutputLink({
335
+ file,
336
+ toolName,
337
+ }: {
338
+ readonly file: NormalizedFile
339
+ readonly toolName: string
340
+ }) {
341
+ const panel = useArtifactPanel()
342
+ const messages = useAgentMessages().activity
343
+ const files = useAgentMessages().files
344
+ const locale = useLocale()
345
+ if (!file.source) return null
346
+
347
+ // Named for the call it came from, not the call id the run stored it under.
348
+ const extension = /\.[a-z0-9]+$/i.exec(file.fileRef.fileName ?? "")?.[0] ?? ".txt"
349
+ const source = { ...file.source, name: messages.savedOutputName(toolName, extension) }
350
+ const target = { type: "file", source } as const
351
+ const selected = panel?.openKey === viewerTargetKey(target)
352
+ const size = formatFileSize(file.fileRef.sizeBytes, locale, files)
353
+ const className =
354
+ "mt-1 ml-5 flex w-fit items-center gap-1 rounded-sm text-xs leading-normal text-muted-foreground/80 underline-offset-[3px] outline-none transition-colors hover:text-foreground hover:underline focus-visible:text-foreground focus-visible:underline aria-pressed:text-foreground"
355
+ const content = (
356
+ <>
357
+ <span>{messages.fullOutput}</span>
358
+ <span className="tabular-nums text-muted-foreground/60">· {size}</span>
359
+ <ArrowUpRight className="size-3 shrink-0" aria-hidden="true" />
360
+ </>
361
+ )
362
+
363
+ return panel ? (
364
+ <button
365
+ type="button"
366
+ className={className}
367
+ aria-pressed={selected}
368
+ onClick={() => (selected ? panel.close() : panel.open(target))}
369
+ >
370
+ {content}
371
+ </button>
372
+ ) : (
373
+ <a className={className} href={source.inlineUrl} target="_blank" rel="noreferrer">
374
+ {content}
375
+ </a>
376
+ )
311
377
  }
312
378
 
313
379
  /** A tool call through the framework's view of the tool, else the generic inspector. */
@@ -16,6 +16,7 @@ import {
16
16
  ChevronRight,
17
17
  Clock3,
18
18
  type LucideIcon,
19
+ Plus,
19
20
  RotateCcw,
20
21
  Unplug,
21
22
  } from "lucide-react"
@@ -114,7 +115,12 @@ function AssistantMessage({
114
115
  const messages = useAgentMessages()
115
116
  return (
116
117
  <div className="flex flex-col gap-2">
117
- {message.compaction ? <CompactionResult summary={message.compaction.summary} /> : null}
118
+ {message.compaction ? (
119
+ <CompactionResult
120
+ summary={message.compaction.summary}
121
+ contextFull={message.compaction.reason === "overflow"}
122
+ />
123
+ ) : null}
118
124
  <AgentMessageBody message={message} />
119
125
  {message.diagnostics.map((annotation, index) => (
120
126
  // Laid out like the timeout and interrupted markers: notice, then its action.
@@ -163,12 +169,19 @@ export function AuthorLine({ author }: { readonly author: AuthorLabel | undefine
163
169
  return <p className="mt-2 px-1 text-xs text-muted-foreground">{author.label}</p>
164
170
  }
165
171
 
166
- function CompactionResult({ summary }: { summary: string }) {
172
+ /** The summary the run condensed the conversation into; why, when the context was full. */
173
+ function CompactionResult({
174
+ summary,
175
+ contextFull,
176
+ }: {
177
+ readonly summary: string
178
+ readonly contextFull: boolean
179
+ }) {
167
180
  const messages = useAgentMessages().transcript
168
181
  return (
169
182
  <Collapsible className="max-w-full">
170
183
  <CollapsibleTrigger className="group flex w-fit max-w-full items-center gap-1.5 rounded-md px-1 py-0.5 text-[13px] leading-normal text-muted-foreground outline-none transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring">
171
- <span>{messages.condensed}</span>
184
+ <span>{contextFull ? messages.condensedFull : messages.condensed}</span>
172
185
  <ChevronRight className="size-4 shrink-0 opacity-0 transition-[transform,opacity] group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[state=open]:rotate-90 group-data-[state=open]:opacity-100" />
173
186
  </CollapsibleTrigger>
174
187
  <CollapsibleContent>
@@ -182,27 +195,52 @@ function CompactionResult({ summary }: { summary: string }) {
182
195
  )
183
196
  }
184
197
 
185
- export function CompactionMarker() {
198
+ /** Condensing under way; to let the turn go on when the provider refused a request as too long. */
199
+ export function CompactionMarker({ contextFull = false }: { readonly contextFull?: boolean }) {
186
200
  const messages = useAgentMessages().transcript
187
201
  return (
188
202
  <Marker role="status" aria-label={messages.condensingLabel}>
189
- <MarkerContent className="shimmer">{messages.condensing}</MarkerContent>
203
+ <MarkerContent className="shimmer">
204
+ {contextFull ? messages.condensingFull : messages.condensing}
205
+ </MarkerContent>
190
206
  </Marker>
191
207
  )
192
208
  }
193
209
 
194
- export function ThinkingMarker({ takingLonger = false }: { takingLonger?: boolean }) {
195
- const messages = useAgentMessages().transcript
210
+ export function ThinkingMarker({
211
+ takingLonger = false,
212
+ waitingFor = null,
213
+ }: {
214
+ takingLonger?: boolean
215
+ /** The offline computer the turn waits for. */
216
+ waitingFor?: string | null
217
+ }) {
218
+ const messages = useAgentMessages()
219
+ const label = waitingFor
220
+ ? messages.computer.waitingFor(waitingFor)
221
+ : takingLonger
222
+ ? messages.transcript.takingLonger
223
+ : messages.transcript.thinking
196
224
  return (
197
- <div className={ACTIVITY_STATUS_ROW_CLASS_NAME} role="status" aria-label={messages.working}>
198
- <ActivityStatusText
199
- label={takingLonger ? messages.takingLonger : messages.thinking}
200
- className="shimmer"
201
- />
225
+ <div
226
+ className={ACTIVITY_STATUS_ROW_CLASS_NAME}
227
+ role="status"
228
+ aria-label={messages.transcript.working}
229
+ >
230
+ <ActivityStatusText label={label} className="shimmer" />
202
231
  </div>
203
232
  )
204
233
  }
205
234
 
235
+ /** Where the conversation moved: the files earlier turns worked on stayed behind. */
236
+ export function MovedMarker({ label }: { readonly label: string }) {
237
+ return (
238
+ <Marker role="note">
239
+ <MarkerContent>{label}</MarkerContent>
240
+ </Marker>
241
+ )
242
+ }
243
+
206
244
  /**
207
245
  * How a turn ended short of a full answer: one quiet line, its icon tinted by what happened, and at
208
246
  * most one way on. Every ending reads the same way, so only the words and the icon change.
@@ -220,12 +258,13 @@ function TurnNotice({
220
258
  }) {
221
259
  return (
222
260
  <div className="flex flex-wrap items-center gap-x-3 gap-y-2" role="status">
223
- <p className="flex min-w-0 items-center gap-2 text-sm text-muted-foreground">
261
+ {/* The icon sits on the first line of a notice that wraps: 2px centers 16px on 20px. */}
262
+ <p className="flex min-w-0 items-start gap-2 text-sm leading-5 text-muted-foreground">
224
263
  {Icon ? (
225
264
  <Icon
226
265
  aria-hidden="true"
227
266
  className={cn(
228
- "size-4 shrink-0",
267
+ "mt-0.5 size-4 shrink-0",
229
268
  tone === "error" ? "text-destructive" : "text-amber-600 dark:text-amber-400"
230
269
  )}
231
270
  />
@@ -376,17 +415,35 @@ export function RunInterruptedMarker({
376
415
  export function RunFailureMarker({
377
416
  onRetry,
378
417
  retrying = false,
418
+ contextFull = false,
419
+ onNewThread,
379
420
  }: {
380
421
  onRetry?: () => void
381
422
  retrying?: boolean
423
+ /**
424
+ * The conversation is too long for its model: running it again would fail the same way, so the
425
+ * way on is a new thread.
426
+ */
427
+ contextFull?: boolean
428
+ onNewThread?: () => void
382
429
  }) {
383
- const messages = useAgentMessages().transcript
430
+ const labels = useAgentMessages()
431
+ const messages = labels.transcript
384
432
  return (
385
433
  <TurnNotice
386
434
  icon={AlertTriangle}
387
435
  tone="error"
388
436
  action={
389
- onRetry ? (
437
+ contextFull ? (
438
+ onNewThread ? (
439
+ <TurnAction
440
+ icon={Plus}
441
+ label={labels.threads.new}
442
+ onClick={onNewThread}
443
+ disabled={false}
444
+ />
445
+ ) : null
446
+ ) : onRetry ? (
390
447
  <TurnAction
391
448
  icon={RotateCcw}
392
449
  label={retrying ? messages.retrying : messages.retry}
@@ -396,7 +453,7 @@ export function RunFailureMarker({
396
453
  ) : null
397
454
  }
398
455
  >
399
- {messages.notStarted}
456
+ {contextFull ? messages.contextFull : messages.notStarted}
400
457
  </TurnNotice>
401
458
  )
402
459
  }
@@ -15,6 +15,8 @@ import {
15
15
  type ReportedApprovalOutcome,
16
16
  type TranscriptApprovals,
17
17
  } from "../approvals"
18
+ import { BackgroundCardsContext, type TranscriptBackground } from "../background/context"
19
+ import { BACKGROUND_TOOLS, readThreadBackground } from "../background/interpret"
18
20
  import type { AgentConversationMessage, AgentConversationTurn } from "../conversation"
19
21
  import { DelegationCardsContext, type TranscriptDelegation } from "../delegation/context"
20
22
  import {
@@ -25,10 +27,12 @@ import {
25
27
  import { heldInCard } from "../delegation/model"
26
28
  import { useAgentMessages } from "../i18n"
27
29
  import { principalKey } from "../message-authors"
30
+ import { CONTEXT_LIMIT_EXCEEDED } from "../run-presentation"
28
31
  import { ApprovalCards } from "./approval-card"
29
32
  import {
30
33
  CompactionMarker,
31
34
  MessageView,
35
+ MovedMarker,
32
36
  ReconnectingMarker,
33
37
  RunCancelledMarker,
34
38
  RunErrorMarker,
@@ -48,6 +52,8 @@ export interface TranscriptProps {
48
52
  readonly anchorCurrentTurn?: boolean
49
53
  readonly onRetry?: () => void
50
54
  readonly onContinue?: () => void
55
+ /** Start a new thread: the way on from a conversation too long for its model. */
56
+ readonly onNewThread?: () => void
51
57
  /**
52
58
  * The thread's calls held for approval. Each shows as a card under the work that made it, which
53
59
  * its requester answers; without them, as for an observer, the cards show only what the messages
@@ -61,10 +67,22 @@ export interface TranscriptProps {
61
67
  * that spawned it. Without it, as for an observer, the cards only read.
62
68
  */
63
69
  readonly delegation?: TranscriptDelegation
70
+ /** Where the conversation moved, after which saved message: the files from before stayed. */
71
+ readonly moved?: { readonly afterMessageId: string; readonly label: string } | null
72
+ /**
73
+ * Where its background commands run and what is known of them now, each a card under the work
74
+ * that started it. Without it, a command its turn no longer runs reads as last seen running.
75
+ */
76
+ readonly background?: TranscriptBackground
64
77
  }
65
78
 
66
79
  const NO_OUTCOMES: ReadonlyMap<string, ReportedApprovalOutcome> = new Map()
67
80
 
81
+ /** Nothing said of where the commands run: no card claims how one ended that nobody saw. */
82
+ const UNKNOWN_BACKGROUND: TranscriptBackground = {
83
+ source: { onComputer: true, live: null, online: false },
84
+ }
85
+
68
86
  export function Transcript(props: TranscriptProps) {
69
87
  const { approvals, approvalOutcomes, messages, turn, threadId, delegation: actions } = props
70
88
  const cards = useMemo(
@@ -85,10 +103,30 @@ export function Transcript(props: TranscriptProps) {
85
103
  [threadId, delegation, liveRunId, actions]
86
104
  )
87
105
 
106
+ // Its background commands change as their calls do, not with every chunk of the reply.
107
+ const backgroundSignature = JSON.stringify(
108
+ messages.flatMap((message) =>
109
+ message.parts.flatMap((part) =>
110
+ part.type === "tool" && BACKGROUND_TOOLS.has(part.toolName)
111
+ ? [[part.toolCallId, part.state]]
112
+ : []
113
+ )
114
+ )
115
+ )
116
+ // biome-ignore lint/correctness/useExhaustiveDependencies: the signature stands for the calls
117
+ const thread = useMemo(() => readThreadBackground(messages), [backgroundSignature])
118
+ const { background = UNKNOWN_BACKGROUND } = props
119
+ const backgroundCards = useMemo(
120
+ () => ({ ...background, thread, liveRunId }),
121
+ [background, thread, liveRunId]
122
+ )
123
+
88
124
  return (
89
125
  <ApprovalCardsContext.Provider value={cards}>
90
126
  <DelegationCardsContext.Provider value={children}>
91
- <TranscriptView {...props} threadDelegation={delegation} />
127
+ <BackgroundCardsContext.Provider value={backgroundCards}>
128
+ <TranscriptView {...props} threadDelegation={delegation} />
129
+ </BackgroundCardsContext.Provider>
92
130
  </DelegationCardsContext.Provider>
93
131
  </ApprovalCardsContext.Provider>
94
132
  )
@@ -102,7 +140,9 @@ function TranscriptView({
102
140
  anchorCurrentTurn,
103
141
  onRetry,
104
142
  onContinue,
143
+ onNewThread,
105
144
  approvals,
145
+ moved,
106
146
  }: TranscriptProps & { readonly threadDelegation: ThreadDelegation }) {
107
147
  // Messages one person sends in a row name them once; an answer in between names them again.
108
148
  const continuedKeys = useMemo(() => continuedUserMessages(messages), [messages])
@@ -230,16 +270,28 @@ function TranscriptView({
230
270
  <ApprovalCards calls={calls} />
231
271
  </MessageScrollerItem>
232
272
  ) : null}
273
+ {moved && message.id === moved.afterMessageId ? (
274
+ <MessageScrollerItem messageId="moved">
275
+ <MovedMarker label={moved.label} />
276
+ </MessageScrollerItem>
277
+ ) : null}
233
278
  </Fragment>
234
279
  )
235
280
  })}
236
281
  {trailingAt === messages.length ? trailingCards : null}
237
- {liveReply ? null : showThinking && turn.kind === "responding" ? (
282
+ {liveReply ? (
283
+ // A turn that compacts from within says so under what it has streamed.
284
+ turn.kind === "responding" && turn.compacting ? (
285
+ <MessageScrollerItem messageId="compacting">
286
+ <CompactionMarker contextFull={turn.contextFull} />
287
+ </MessageScrollerItem>
288
+ ) : null
289
+ ) : showThinking && turn.kind === "responding" ? (
238
290
  <MessageScrollerItem messageId="thinking" scrollAnchor={anchoredKey === THINKING}>
239
291
  {turn.compacting ? (
240
- <CompactionMarker />
292
+ <CompactionMarker contextFull={turn.contextFull} />
241
293
  ) : (
242
- <ThinkingMarker takingLonger={turn.waitingLonger} />
294
+ <ThinkingMarker takingLonger={turn.waitingLonger} waitingFor={turn.waitingFor} />
243
295
  )}
244
296
  </MessageScrollerItem>
245
297
  ) : turn.kind === "timeout" ? (
@@ -265,7 +317,12 @@ function TranscriptView({
265
317
  </MessageScrollerItem>
266
318
  ) : turn.kind === "failed" ? (
267
319
  <MessageScrollerItem messageId="run-failed">
268
- <RunFailureMarker onRetry={onRetry} retrying={turn.retrying} />
320
+ <RunFailureMarker
321
+ onRetry={onRetry}
322
+ retrying={turn.retrying}
323
+ contextFull={turn.errorCode === CONTEXT_LIMIT_EXCEEDED}
324
+ {...(onNewThread ? { onNewThread } : {})}
325
+ />
269
326
  </MessageScrollerItem>
270
327
  ) : turn.kind === "cancelled" ? (
271
328
  <MessageScrollerItem messageId="run-cancelled">
@@ -1,19 +1,46 @@
1
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@sixb/ui/components"
1
+ import {
2
+ Collapsible,
3
+ CollapsibleContent,
4
+ CollapsibleTrigger,
5
+ Markdown,
6
+ type MarkdownProps,
7
+ } from "@sixb/ui/components"
8
+ import { useLocale } from "@sixb/ui/lib/i18n"
2
9
  import { ArrowUpRight, ChevronRight, Globe } from "lucide-react"
10
+ import { formatFileSize } from "../../artifacts/file-size"
3
11
  import { useAgentMessages } from "../i18n"
4
12
  import type { NormalizedTool } from "../parts"
5
- import { coerceWebFetchOutput, webFetchUrl } from "../utils/web-fetch"
13
+ import {
14
+ coerceWebFetchOutput,
15
+ type WebFetchPage,
16
+ webFetchQuestion,
17
+ webFetchUrl,
18
+ } from "../utils/web-fetch"
19
+ import { displayDomain } from "../utils/web-search"
6
20
  import { ActivityStatusText } from "./activity-status"
7
21
  import { SourceFavicon } from "./web-sources"
8
22
 
23
+ // A page's images, or those its answer quotes, would load from their sites as soon as the row
24
+ // opens: the text is enough.
25
+ const PAGE_COMPONENTS: MarkdownProps["components"] = { img: () => null }
26
+
9
27
  export function WebFetchToolView({ tool }: { tool: NormalizedTool }) {
10
28
  const messages = useAgentMessages().web
11
29
  const running = tool.state === "input-streaming" || tool.state === "input-available"
12
30
  const failed = tool.state === "output-error"
13
- const source = coerceWebFetchOutput(tool.output)
31
+ const page = coerceWebFetchOutput(tool.output)
14
32
  const url = webFetchUrl(tool.input)
15
- const domain = source?.domain ?? url?.hostname.replace(/^www\./, "") ?? messages.webPage
16
- const favicon = source?.faviconUrl ?? (url ? new URL("/favicon.ico", url.origin).href : null)
33
+ const question = page?.question ?? webFetchQuestion(tool.input)
34
+
35
+ const domain = page?.source.domain ?? (url ? displayDomain(url) : messages.webPage)
36
+ const favicon = page?.source.faviconUrl ?? (url ? new URL("/favicon.ico", url.origin).href : null)
37
+ const label = running
38
+ ? question
39
+ ? messages.asking(domain)
40
+ : messages.reading(domain)
41
+ : failed
42
+ ? messages.readFailed(domain)
43
+ : (page?.source.title ?? messages.read(domain))
17
44
 
18
45
  return (
19
46
  <Collapsible className="min-w-0 space-y-1 text-[13px] text-muted-foreground">
@@ -27,17 +54,14 @@ export function WebFetchToolView({ tool }: { tool: NormalizedTool }) {
27
54
  </span>
28
55
  <span className="min-w-0 flex-1">
29
56
  {running ? (
30
- <ActivityStatusText
31
- label={messages.reading(domain)}
32
- className="shimmer motion-reduce:animate-none"
33
- />
57
+ <ActivityStatusText label={label} className="shimmer motion-reduce:animate-none" />
34
58
  ) : (
35
- <span className="line-clamp-2 font-medium break-words">
36
- {failed ? messages.readFailed(domain) : (source?.title ?? messages.read(domain))}
37
- </span>
59
+ <span className="line-clamp-2 font-medium break-words">{label}</span>
38
60
  )}
39
- {source && !running && !failed ? (
40
- <span className="mt-0.5 block truncate text-xs text-muted-foreground/70">{domain}</span>
61
+ {page && !running && !failed ? (
62
+ <span className="mt-0.5 block truncate text-xs text-muted-foreground/70">
63
+ {page.redirect ? messages.redirectedTo(page.redirect.domain) : domain}
64
+ </span>
41
65
  ) : null}
42
66
  </span>
43
67
  <ChevronRight className="mt-0.5 size-3.5 shrink-0 opacity-0 transition-all group-hover:opacity-100 group-focus-visible:opacity-100 group-data-[state=open]:rotate-90 group-data-[state=open]:opacity-100 motion-reduce:transition-none" />
@@ -48,22 +72,63 @@ export function WebFetchToolView({ tool }: { tool: NormalizedTool }) {
48
72
  </p>
49
73
  ) : null}
50
74
  <CollapsibleContent className="space-y-2 pt-1 pl-[26px]">
51
- {source ? (
52
- <>
53
- <p className="leading-relaxed break-words">{source.excerpt || messages.noPageText}</p>
54
- <a
55
- href={source.url}
56
- target="_blank"
57
- rel="noopener noreferrer"
58
- className="flex w-fit items-center gap-1 rounded text-xs font-medium underline-offset-4 hover:text-foreground hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:min-h-11"
59
- >
60
- {messages.openPage}
61
- <ArrowUpRight className="size-3.5" aria-hidden="true" />
62
- <span className="sr-only">{messages.newTab}</span>
63
- </a>
64
- </>
65
- ) : null}
75
+ {question ? <p className="font-medium break-words text-foreground/80">{question}</p> : null}
76
+ {page ? <PageContent page={page} /> : null}
66
77
  </CollapsibleContent>
67
78
  </Collapsible>
68
79
  )
69
80
  }
81
+
82
+ /** The answer when the agent asked one, else the start of the page; then what the server sent. */
83
+ function PageContent({ page }: { page: WebFetchPage }) {
84
+ const messages = useAgentMessages()
85
+ const locale = useLocale()
86
+
87
+ const served = [
88
+ page.status,
89
+ page.contentType?.split(";")[0],
90
+ page.bytes !== undefined ? formatFileSize(page.bytes, locale, messages.files) : undefined,
91
+ page.truncated ? messages.web.truncated : undefined,
92
+ ].filter((value) => value !== undefined)
93
+
94
+ return (
95
+ <>
96
+ {page.answer ? (
97
+ <>
98
+ <Markdown className="sixb-web-fetch text-foreground" components={PAGE_COMPONENTS}>
99
+ {page.answer}
100
+ </Markdown>
101
+ {page.answerTruncated ? (
102
+ <p className="text-xs text-muted-foreground/70">{messages.web.answerTruncated}</p>
103
+ ) : null}
104
+ </>
105
+ ) : page.preview ? (
106
+ <>
107
+ {page.answerFailed ? <p>{messages.web.answerFailed}</p> : null}
108
+ <div className="scrollbar-thin max-h-60 overflow-y-auto overscroll-contain rounded bg-muted/50 p-2">
109
+ <Markdown className="sixb-web-fetch sixb-web-fetch-page" components={PAGE_COMPONENTS}>
110
+ {page.preview}
111
+ </Markdown>
112
+ </div>
113
+ </>
114
+ ) : page.redirect ? null : (
115
+ <p>{messages.web.noPageText}</p>
116
+ )}
117
+ {served.length > 0 ? (
118
+ <p className="truncate font-mono text-[10px] text-muted-foreground/60">
119
+ {served.join(" · ")}
120
+ </p>
121
+ ) : null}
122
+ <a
123
+ href={page.redirect?.url ?? page.source.url}
124
+ target="_blank"
125
+ rel="noopener noreferrer"
126
+ className="flex w-fit items-center gap-1 rounded text-xs font-medium underline-offset-4 hover:text-foreground hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:min-h-11"
127
+ >
128
+ {messages.web.openPage}
129
+ <ArrowUpRight className="size-3.5" aria-hidden="true" />
130
+ <span className="sr-only">{messages.web.newTab}</span>
131
+ </a>
132
+ </>
133
+ )
134
+ }
@@ -43,6 +43,8 @@ export type AgentConversationToolPart = {
43
43
  readonly toolCallId?: string
44
44
  /** Files in a saved rich result, such as the image `view_file` prepared for the model. */
45
45
  readonly files?: readonly AgentConversationFile[]
46
+ /** The whole output, saved as a file when it was too large for the model's context. */
47
+ readonly outputFile?: AgentConversationFile
46
48
  } & AgentToolViewProps
47
49
 
48
50
  /**
@@ -350,6 +352,14 @@ function savedParts(
350
352
  toolCallId: part.toolCallId,
351
353
  ...toolViewProps(tool),
352
354
  ...(files.length === 0 ? {} : { files }),
355
+ ...(part.state === "output-available" && part.outputFile
356
+ ? {
357
+ outputFile: {
358
+ fileRef: part.outputFile.fileRef,
359
+ source: fileSource(part.outputFile.fileRef, `/parts/${index}/outputFile/fileRef`),
360
+ },
361
+ }
362
+ : {}),
353
363
  })
354
364
  break
355
365
  }
@@ -568,15 +578,22 @@ export type AgentConversationTurn = AgentConversationTurnActions &
568
578
  readonly runId: string
569
579
  /** The answer has waited in the queue longer than usual. */
570
580
  readonly waitingLonger: boolean
571
- /** Earlier turns are being condensed before the answer starts. */
581
+ /** The computer the answer waits for, while it is offline. */
582
+ readonly waitingFor: string | null
583
+ /** Earlier turns are being condensed before the answer starts, or to let it go on. */
572
584
  readonly compacting: boolean
585
+ /** The condensing follows a request the provider refused as too long. */
586
+ readonly contextFull: boolean
573
587
  /** The answer's live stream dropped and is reconnecting. */
574
588
  readonly reconnecting: boolean
575
589
  /** Who asked for the answer, when it is someone other than the reader. */
576
590
  readonly answeringFor: AgentConversationAuthor | null
577
591
  }
578
- /** The turn failed without an answer. One that failed mid-answer says so on its reply. */
579
- | { readonly kind: "failed" }
592
+ /**
593
+ * The turn failed without an answer, and why, by the run's error code. One that failed
594
+ * mid-answer says so on its reply.
595
+ */
596
+ | { readonly kind: "failed"; readonly errorCode?: string }
580
597
  /** The turn hit its time limit. With progress saved it can continue, else run again. */
581
598
  | { readonly kind: "timeout"; readonly hasProgress: boolean; readonly timeoutMs?: number }
582
599
  /** The worker running the turn stopped. With progress saved it can continue, else run again. */
@@ -589,7 +606,10 @@ export interface ConversationTurnInput extends AgentConversationTurnActions {
589
606
  readonly presentation: ActiveTurnPresentation
590
607
  readonly activeRunId: string | null
591
608
  readonly waitingLonger: boolean
609
+ /** The offline computer a conversation that runs on one waits for. */
610
+ readonly waitingFor: string | null
592
611
  readonly compacting: boolean
612
+ readonly contextFull: boolean
593
613
  readonly reconnecting: boolean
594
614
  readonly answeringFor: AgentConversationAuthor | null
595
615
  }
@@ -616,7 +636,9 @@ export function conversationTurn(input: ConversationTurnInput): AgentConversatio
616
636
  runId: input.activeRunId,
617
637
  // Set while the wait is the queue's, before the run starts.
618
638
  waitingLonger: presentation.queuedRun !== null && input.waitingLonger,
639
+ waitingFor: presentation.queuedRun !== null ? input.waitingFor : null,
619
640
  compacting: input.compacting,
641
+ contextFull: input.compacting && input.contextFull,
620
642
  reconnecting: input.reconnecting,
621
643
  answeringFor: input.answeringFor,
622
644
  }
@@ -633,6 +655,12 @@ export function conversationTurn(input: ConversationTurnInput): AgentConversatio
633
655
  return { ...actions, kind: "interrupted", hasProgress: presentation.hasProgress }
634
656
 
635
657
  case "failed":
658
+ return {
659
+ ...actions,
660
+ kind: "failed",
661
+ ...(presentation.run.error ? { errorCode: presentation.run.error.code } : {}),
662
+ }
663
+
636
664
  case "cancelled":
637
665
  case "idle":
638
666
  return { ...actions, kind: presentation.kind }
@@ -652,7 +680,9 @@ export const READ_ONLY_TURN = {
652
680
  retrying: false,
653
681
  continuing: false,
654
682
  waitingLonger: false,
683
+ waitingFor: null,
655
684
  compacting: false,
685
+ contextFull: false,
656
686
  reconnecting: false,
657
687
  answeringFor: null,
658
688
  } as const satisfies Omit<ConversationTurnInput, "presentation" | "activeRunId">
@@ -274,7 +274,7 @@ function tierOf(value: string | undefined): "light" | "standard" | "heavy" | und
274
274
  }
275
275
 
276
276
  /** Now, every second while `ticking`: an elapsed time that moves. */
277
- function useNow(ticking: boolean): number {
277
+ export function useNow(ticking: boolean): number {
278
278
  const [now, setNow] = useState(() => Date.now())
279
279
  useEffect(() => {
280
280
  setNow(Date.now())