@sixb/app 0.1.13 → 0.1.14

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 (501) hide show
  1. package/README.md +6 -0
  2. package/dist/agent/activity-label.d.ts.map +1 -1
  3. package/dist/agent/agent-chat.d.ts +1 -1
  4. package/dist/agent/agent-chat.d.ts.map +1 -1
  5. package/dist/agent/agent-context-provider.d.ts +1 -0
  6. package/dist/agent/agent-context-provider.d.ts.map +1 -1
  7. package/dist/agent/approvals.d.ts +110 -0
  8. package/dist/agent/approvals.d.ts.map +1 -0
  9. package/dist/agent/artifact-panel.d.ts +11 -7
  10. package/dist/agent/artifact-panel.d.ts.map +1 -1
  11. package/dist/agent/bash/bash-tool-view.d.ts +13 -0
  12. package/dist/agent/bash/bash-tool-view.d.ts.map +1 -1
  13. package/dist/agent/bash/interpret.d.ts +46 -2
  14. package/dist/agent/bash/interpret.d.ts.map +1 -1
  15. package/dist/agent/bash/model-media-view.d.ts +14 -0
  16. package/dist/agent/bash/model-media-view.d.ts.map +1 -0
  17. package/dist/agent/bash/shell.d.ts.map +1 -1
  18. package/dist/agent/components/agent-message-body.d.ts +21 -0
  19. package/dist/agent/components/agent-message-body.d.ts.map +1 -0
  20. package/dist/agent/components/agent-thread-switcher.d.ts +22 -1
  21. package/dist/agent/components/agent-thread-switcher.d.ts.map +1 -1
  22. package/dist/agent/components/approval-card.d.ts +17 -0
  23. package/dist/agent/components/approval-card.d.ts.map +1 -0
  24. package/dist/agent/components/approval-mode-chip.d.ts +17 -0
  25. package/dist/agent/components/approval-mode-chip.d.ts.map +1 -0
  26. package/dist/agent/components/auto-model-chip.d.ts +24 -0
  27. package/dist/agent/components/auto-model-chip.d.ts.map +1 -0
  28. package/dist/agent/components/composer.d.ts +21 -2
  29. package/dist/agent/components/composer.d.ts.map +1 -1
  30. package/dist/agent/components/context-chips.d.ts +4 -2
  31. package/dist/agent/components/context-chips.d.ts.map +1 -1
  32. package/dist/agent/components/conversation-panel.d.ts +13 -55
  33. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  34. package/dist/agent/components/message-parts.d.ts +17 -3
  35. package/dist/agent/components/message-parts.d.ts.map +1 -1
  36. package/dist/agent/components/message-view.d.ts +19 -21
  37. package/dist/agent/components/message-view.d.ts.map +1 -1
  38. package/dist/agent/components/model-controls.d.ts +8 -2
  39. package/dist/agent/components/model-controls.d.ts.map +1 -1
  40. package/dist/agent/components/model-picker-row.d.ts +5 -1
  41. package/dist/agent/components/model-picker-row.d.ts.map +1 -1
  42. package/dist/agent/components/participant-input.d.ts +29 -0
  43. package/dist/agent/components/participant-input.d.ts.map +1 -0
  44. package/dist/agent/components/provider-logo.d.ts +5 -4
  45. package/dist/agent/components/provider-logo.d.ts.map +1 -1
  46. package/dist/agent/components/reasoning-effort-slider.d.ts +8 -7
  47. package/dist/agent/components/reasoning-effort-slider.d.ts.map +1 -1
  48. package/dist/agent/components/sandbox-recovery.d.ts +8 -2
  49. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
  50. package/dist/agent/components/shared-thread-notice.d.ts +10 -0
  51. package/dist/agent/components/shared-thread-notice.d.ts.map +1 -0
  52. package/dist/agent/components/thread-artifacts-menu.d.ts +8 -2
  53. package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -1
  54. package/dist/agent/components/thread-people.d.ts +24 -0
  55. package/dist/agent/components/thread-people.d.ts.map +1 -0
  56. package/dist/agent/components/transcript.d.ts +22 -29
  57. package/dist/agent/components/transcript.d.ts.map +1 -1
  58. package/dist/agent/conversation.d.ts +201 -0
  59. package/dist/agent/conversation.d.ts.map +1 -0
  60. package/dist/agent/delegation/child-card.d.ts +19 -0
  61. package/dist/agent/delegation/child-card.d.ts.map +1 -0
  62. package/dist/agent/delegation/child-cards.d.ts +9 -0
  63. package/dist/agent/delegation/child-cards.d.ts.map +1 -0
  64. package/dist/agent/delegation/child-group.d.ts +14 -0
  65. package/dist/agent/delegation/child-group.d.ts.map +1 -0
  66. package/dist/agent/delegation/child-parts.d.ts +50 -0
  67. package/dist/agent/delegation/child-parts.d.ts.map +1 -0
  68. package/dist/agent/delegation/child-work.d.ts +31 -0
  69. package/dist/agent/delegation/child-work.d.ts.map +1 -0
  70. package/dist/agent/delegation/context.d.ts +22 -0
  71. package/dist/agent/delegation/context.d.ts.map +1 -0
  72. package/dist/agent/delegation/interpret.d.ts +104 -0
  73. package/dist/agent/delegation/interpret.d.ts.map +1 -0
  74. package/dist/agent/delegation/model.d.ts +52 -0
  75. package/dist/agent/delegation/model.d.ts.map +1 -0
  76. package/dist/agent/delegation/use-children.d.ts +1007 -0
  77. package/dist/agent/delegation/use-children.d.ts.map +1 -0
  78. package/dist/agent/hooks/use-agent-conversation.d.ts +692 -131
  79. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  80. package/dist/agent/hooks/use-thread-sharing.d.ts +35 -0
  81. package/dist/agent/hooks/use-thread-sharing.d.ts.map +1 -0
  82. package/dist/agent/i18n/en.d.ts +313 -0
  83. package/dist/agent/i18n/en.d.ts.map +1 -1
  84. package/dist/agent/i18n/fr.d.ts.map +1 -1
  85. package/dist/agent/i18n/index.d.ts +608 -0
  86. package/dist/agent/i18n/index.d.ts.map +1 -1
  87. package/dist/agent/live-run.d.ts.map +1 -1
  88. package/dist/agent/memory-paths.d.ts +18 -0
  89. package/dist/agent/memory-paths.d.ts.map +1 -0
  90. package/dist/agent/message-agent/interpret.d.ts +21 -0
  91. package/dist/agent/message-agent/interpret.d.ts.map +1 -0
  92. package/dist/agent/message-authors.d.ts +56 -0
  93. package/dist/agent/message-authors.d.ts.map +1 -0
  94. package/dist/agent/model-selection.d.ts +10 -0
  95. package/dist/agent/model-selection.d.ts.map +1 -1
  96. package/dist/agent/observed-conversation.d.ts +26 -0
  97. package/dist/agent/observed-conversation.d.ts.map +1 -0
  98. package/dist/agent/observed-thread.d.ts +9 -0
  99. package/dist/agent/observed-thread.d.ts.map +1 -0
  100. package/dist/agent/parts.d.ts +5 -0
  101. package/dist/agent/parts.d.ts.map +1 -1
  102. package/dist/agent/publish-artifact/use-live-publishes.d.ts +5 -2
  103. package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -1
  104. package/dist/agent/read/interpret.d.ts +2 -0
  105. package/dist/agent/read/interpret.d.ts.map +1 -1
  106. package/dist/agent/run-presentation.d.ts +11 -0
  107. package/dist/agent/run-presentation.d.ts.map +1 -1
  108. package/dist/agent/sharing.d.ts +42 -0
  109. package/dist/agent/sharing.d.ts.map +1 -0
  110. package/dist/agent/tool-views/built-in.d.ts +5 -0
  111. package/dist/agent/tool-views/built-in.d.ts.map +1 -0
  112. package/dist/agent/tool-views/define.d.ts +79 -0
  113. package/dist/agent/tool-views/define.d.ts.map +1 -0
  114. package/dist/agent/tool-views/registry.d.ts +28 -0
  115. package/dist/agent/tool-views/registry.d.ts.map +1 -0
  116. package/dist/agent/utils/radio-group.d.ts +11 -0
  117. package/dist/agent/utils/radio-group.d.ts.map +1 -0
  118. package/dist/artifacts/card-details.d.ts.map +1 -1
  119. package/dist/artifacts/card-preview.d.ts.map +1 -1
  120. package/dist/artifacts/downloads.d.ts +26 -0
  121. package/dist/artifacts/downloads.d.ts.map +1 -0
  122. package/dist/artifacts/edit-session.d.ts +36 -0
  123. package/dist/artifacts/edit-session.d.ts.map +1 -0
  124. package/dist/artifacts/file-source.d.ts +27 -1
  125. package/dist/artifacts/file-source.d.ts.map +1 -1
  126. package/dist/artifacts/file-type-icon.d.ts +14 -0
  127. package/dist/artifacts/file-type-icon.d.ts.map +1 -0
  128. package/dist/artifacts/frame-embeds.d.ts +20 -0
  129. package/dist/artifacts/frame-embeds.d.ts.map +1 -0
  130. package/dist/artifacts/frame.d.ts +12 -1
  131. package/dist/artifacts/frame.d.ts.map +1 -1
  132. package/dist/artifacts/gallery.d.ts.map +1 -1
  133. package/dist/artifacts/history.d.ts +15 -0
  134. package/dist/artifacts/history.d.ts.map +1 -0
  135. package/dist/artifacts/kind-icon.d.ts +7 -0
  136. package/dist/artifacts/kind-icon.d.ts.map +1 -1
  137. package/dist/artifacts/messages.d.ts +518 -4
  138. package/dist/artifacts/messages.d.ts.map +1 -1
  139. package/dist/artifacts/page-queries.d.ts +22 -0
  140. package/dist/artifacts/page-queries.d.ts.map +1 -0
  141. package/dist/artifacts/page-state.d.ts +21 -0
  142. package/dist/artifacts/page-state.d.ts.map +1 -0
  143. package/dist/artifacts/people.d.ts +12 -0
  144. package/dist/artifacts/people.d.ts.map +1 -0
  145. package/dist/artifacts/person-avatar.d.ts +23 -0
  146. package/dist/artifacts/person-avatar.d.ts.map +1 -0
  147. package/dist/artifacts/publish-edit.d.ts +29 -0
  148. package/dist/artifacts/publish-edit.d.ts.map +1 -0
  149. package/dist/artifacts/queries.d.ts +77 -1
  150. package/dist/artifacts/queries.d.ts.map +1 -1
  151. package/dist/artifacts/references/references.d.ts.map +1 -1
  152. package/dist/artifacts/renderers/canvas/arrows.d.ts +21 -0
  153. package/dist/artifacts/renderers/canvas/arrows.d.ts.map +1 -0
  154. package/dist/artifacts/renderers/canvas/board.d.ts +54 -0
  155. package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -0
  156. package/dist/artifacts/renderers/canvas/canvas.d.ts +27 -0
  157. package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -0
  158. package/dist/artifacts/renderers/canvas/controls.d.ts +8 -0
  159. package/dist/artifacts/renderers/canvas/controls.d.ts.map +1 -0
  160. package/dist/artifacts/renderers/canvas/draft.d.ts +77 -0
  161. package/dist/artifacts/renderers/canvas/draft.d.ts.map +1 -0
  162. package/dist/artifacts/renderers/canvas/edit-mode.d.ts +55 -0
  163. package/dist/artifacts/renderers/canvas/edit-mode.d.ts.map +1 -0
  164. package/dist/artifacts/renderers/canvas/editing.d.ts +40 -0
  165. package/dist/artifacts/renderers/canvas/editing.d.ts.map +1 -0
  166. package/dist/artifacts/renderers/canvas/focus.d.ts +15 -0
  167. package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -0
  168. package/dist/artifacts/renderers/canvas/items.d.ts +13 -0
  169. package/dist/artifacts/renderers/canvas/items.d.ts.map +1 -0
  170. package/dist/artifacts/renderers/canvas/layout.d.ts +46 -0
  171. package/dist/artifacts/renderers/canvas/layout.d.ts.map +1 -0
  172. package/dist/artifacts/renderers/canvas/renderer.d.ts +13 -0
  173. package/dist/artifacts/renderers/canvas/renderer.d.ts.map +1 -0
  174. package/dist/artifacts/renderers/canvas/thumbnail.d.ts +10 -0
  175. package/dist/artifacts/renderers/canvas/thumbnail.d.ts.map +1 -0
  176. package/dist/artifacts/renderers/canvas/toolbar.d.ts +15 -0
  177. package/dist/artifacts/renderers/canvas/toolbar.d.ts.map +1 -0
  178. package/dist/artifacts/renderers/notice.d.ts.map +1 -1
  179. package/dist/artifacts/renderers/page.d.ts +34 -0
  180. package/dist/artifacts/renderers/page.d.ts.map +1 -0
  181. package/dist/artifacts/renderers/sheet/cell-editor.d.ts +21 -0
  182. package/dist/artifacts/renderers/sheet/cell-editor.d.ts.map +1 -0
  183. package/dist/artifacts/renderers/sheet/cells.d.ts +93 -0
  184. package/dist/artifacts/renderers/sheet/cells.d.ts.map +1 -0
  185. package/dist/artifacts/renderers/sheet/chart-data.d.ts +27 -7
  186. package/dist/artifacts/renderers/sheet/chart-data.d.ts.map +1 -1
  187. package/dist/artifacts/renderers/sheet/chart-icon.d.ts +5 -0
  188. package/dist/artifacts/renderers/sheet/chart-icon.d.ts.map +1 -0
  189. package/dist/artifacts/renderers/sheet/chart-locked.d.ts +9 -0
  190. package/dist/artifacts/renderers/sheet/chart-locked.d.ts.map +1 -0
  191. package/dist/artifacts/renderers/sheet/chart.d.ts +2 -1
  192. package/dist/artifacts/renderers/sheet/chart.d.ts.map +1 -1
  193. package/dist/artifacts/renderers/sheet/column-format.d.ts +28 -0
  194. package/dist/artifacts/renderers/sheet/column-format.d.ts.map +1 -0
  195. package/dist/artifacts/renderers/sheet/column-menu.d.ts +51 -0
  196. package/dist/artifacts/renderers/sheet/column-menu.d.ts.map +1 -0
  197. package/dist/artifacts/renderers/sheet/downloads.d.ts +10 -0
  198. package/dist/artifacts/renderers/sheet/downloads.d.ts.map +1 -0
  199. package/dist/artifacts/renderers/sheet/draft.d.ts +131 -0
  200. package/dist/artifacts/renderers/sheet/draft.d.ts.map +1 -0
  201. package/dist/artifacts/renderers/sheet/filter-panel.d.ts +20 -0
  202. package/dist/artifacts/renderers/sheet/filter-panel.d.ts.map +1 -0
  203. package/dist/artifacts/renderers/sheet/filter.d.ts +40 -0
  204. package/dist/artifacts/renderers/sheet/filter.d.ts.map +1 -0
  205. package/dist/artifacts/renderers/sheet/find-bar.d.ts +42 -0
  206. package/dist/artifacts/renderers/sheet/find-bar.d.ts.map +1 -0
  207. package/dist/artifacts/renderers/sheet/find.d.ts +18 -0
  208. package/dist/artifacts/renderers/sheet/find.d.ts.map +1 -0
  209. package/dist/artifacts/renderers/sheet/fit.d.ts +15 -0
  210. package/dist/artifacts/renderers/sheet/fit.d.ts.map +1 -0
  211. package/dist/artifacts/renderers/sheet/format.d.ts +14 -6
  212. package/dist/artifacts/renderers/sheet/format.d.ts.map +1 -1
  213. package/dist/artifacts/renderers/sheet/frame.d.ts +69 -0
  214. package/dist/artifacts/renderers/sheet/frame.d.ts.map +1 -0
  215. package/dist/artifacts/renderers/sheet/grid.d.ts +69 -6
  216. package/dist/artifacts/renderers/sheet/grid.d.ts.map +1 -1
  217. package/dist/artifacts/renderers/sheet/highlight.d.ts +32 -0
  218. package/dist/artifacts/renderers/sheet/highlight.d.ts.map +1 -0
  219. package/dist/artifacts/renderers/sheet/input.d.ts +30 -0
  220. package/dist/artifacts/renderers/sheet/input.d.ts.map +1 -0
  221. package/dist/artifacts/renderers/sheet/locked.d.ts +17 -0
  222. package/dist/artifacts/renderers/sheet/locked.d.ts.map +1 -0
  223. package/dist/artifacts/renderers/sheet/mini-chart.d.ts.map +1 -1
  224. package/dist/artifacts/renderers/sheet/model.d.ts +26 -4
  225. package/dist/artifacts/renderers/sheet/model.d.ts.map +1 -1
  226. package/dist/artifacts/renderers/sheet/selection.d.ts +30 -6
  227. package/dist/artifacts/renderers/sheet/selection.d.ts.map +1 -1
  228. package/dist/artifacts/renderers/sheet/sheet.d.ts +5 -5
  229. package/dist/artifacts/renderers/sheet/sheet.d.ts.map +1 -1
  230. package/dist/artifacts/renderers/sheet/totals.d.ts +16 -0
  231. package/dist/artifacts/renderers/sheet/totals.d.ts.map +1 -0
  232. package/dist/artifacts/renderers/sheet/view.d.ts +44 -0
  233. package/dist/artifacts/renderers/sheet/view.d.ts.map +1 -0
  234. package/dist/artifacts/renderers/sheet/workbook.d.ts +23 -3
  235. package/dist/artifacts/renderers/sheet/workbook.d.ts.map +1 -1
  236. package/dist/artifacts/renderers/sheet/xlsx.d.ts +18 -0
  237. package/dist/artifacts/renderers/sheet/xlsx.d.ts.map +1 -0
  238. package/dist/artifacts/renderers/sheet/zip.d.ts +12 -0
  239. package/dist/artifacts/renderers/sheet/zip.d.ts.map +1 -0
  240. package/dist/artifacts/renderers/slides/slides.d.ts.map +1 -1
  241. package/dist/artifacts/tones.d.ts +4 -0
  242. package/dist/artifacts/tones.d.ts.map +1 -0
  243. package/dist/artifacts/viewer.d.ts +2 -0
  244. package/dist/artifacts/viewer.d.ts.map +1 -1
  245. package/dist/auth.d.ts +6 -1
  246. package/dist/auth.d.ts.map +1 -1
  247. package/dist/chunk-0yb22w6m.js +1487 -0
  248. package/dist/chunk-0yb22w6m.js.map +18 -0
  249. package/dist/{chunk-c7gy61rx.js → chunk-1rhht9y0.js} +165 -4
  250. package/dist/chunk-1rhht9y0.js.map +10 -0
  251. package/dist/{chunk-gn3k23q5.js → chunk-53z5653y.js} +64 -3
  252. package/dist/chunk-53z5653y.js.map +11 -0
  253. package/dist/chunk-aes17xmx.js +29190 -0
  254. package/dist/chunk-aes17xmx.js.map +172 -0
  255. package/dist/{chunk-g3f4cm8x.js → chunk-k4epnkcr.js} +1 -1
  256. package/dist/{chunk-ng0hdnrq.js → chunk-sw3pyqgy.js} +3 -1
  257. package/dist/chunk-sw3pyqgy.js.map +10 -0
  258. package/dist/{chunk-3schcf10.js → chunk-vtp6nk44.js} +1 -1
  259. package/dist/codegen.d.ts.map +1 -1
  260. package/dist/createCustomApp.d.ts +1 -0
  261. package/dist/createCustomApp.d.ts.map +1 -1
  262. package/dist/index.d.ts +18 -2
  263. package/dist/index.d.ts.map +1 -1
  264. package/dist/index.js +40 -7
  265. package/dist/index.js.map +3 -3
  266. package/dist/locale-messages.d.ts +1 -0
  267. package/dist/locale-messages.d.ts.map +1 -1
  268. package/dist/locale.d.ts +1 -0
  269. package/dist/locale.d.ts.map +1 -1
  270. package/dist/locale.js +1 -1
  271. package/dist/metadata.d.ts.map +1 -1
  272. package/dist/pages/observability/action-run.d.ts.map +1 -1
  273. package/dist/pages/observability/activity/messages.d.ts +14 -0
  274. package/dist/pages/observability/activity/messages.d.ts.map +1 -1
  275. package/dist/pages/observability/activity/thread.d.ts +6 -0
  276. package/dist/pages/observability/activity/thread.d.ts.map +1 -0
  277. package/dist/pages/observability/activity/timeline.d.ts.map +1 -1
  278. package/dist/pages/observability/ai-usage/calls.d.ts.map +1 -1
  279. package/dist/pages/observability/ai-usage/format.d.ts +16 -5
  280. package/dist/pages/observability/ai-usage/format.d.ts.map +1 -1
  281. package/dist/pages/observability/ai-usage/kinds.d.ts +40 -0
  282. package/dist/pages/observability/ai-usage/kinds.d.ts.map +1 -0
  283. package/dist/pages/observability/ai-usage/messages.d.ts +74 -12
  284. package/dist/pages/observability/ai-usage/messages.d.ts.map +1 -1
  285. package/dist/pages/observability/ai-usage/page.d.ts.map +1 -1
  286. package/dist/pages/observability/messages.d.ts +4 -0
  287. package/dist/pages/observability/messages.d.ts.map +1 -1
  288. package/dist/pages/ontology/actions.d.ts.map +1 -1
  289. package/dist/pages/ontology/components/action-button.d.ts +6 -0
  290. package/dist/pages/ontology/components/action-button.d.ts.map +1 -1
  291. package/dist/pages/ontology/components/user-picker.d.ts +37 -0
  292. package/dist/pages/ontology/components/user-picker.d.ts.map +1 -0
  293. package/dist/pages/ontology/workflows/run-input-form.d.ts.map +1 -1
  294. package/dist/pages/routes.d.ts +2 -0
  295. package/dist/pages/routes.d.ts.map +1 -1
  296. package/dist/pages/section-page.d.ts +13 -0
  297. package/dist/pages/section-page.d.ts.map +1 -1
  298. package/dist/pages/section-ui.d.ts.map +1 -1
  299. package/dist/pages/settings/controls.d.ts.map +1 -1
  300. package/dist/pages/settings/members.d.ts.map +1 -1
  301. package/dist/pages/settings/memory-contents.d.ts +30 -0
  302. package/dist/pages/settings/memory-contents.d.ts.map +1 -0
  303. package/dist/pages/settings/memory-entries.d.ts +42 -0
  304. package/dist/pages/settings/memory-entries.d.ts.map +1 -0
  305. package/dist/pages/settings/memory-files.d.ts +49 -0
  306. package/dist/pages/settings/memory-files.d.ts.map +1 -0
  307. package/dist/pages/settings/memory-history.d.ts +8 -0
  308. package/dist/pages/settings/memory-history.d.ts.map +1 -0
  309. package/dist/pages/settings/memory.d.ts +21 -0
  310. package/dist/pages/settings/memory.d.ts.map +1 -0
  311. package/dist/pages/settings/messages.d.ts +206 -0
  312. package/dist/pages/settings/messages.d.ts.map +1 -1
  313. package/dist/pages/settings/personal.d.ts +2 -2
  314. package/dist/pages/settings/personal.d.ts.map +1 -1
  315. package/dist/pages/settings/sessions.d.ts.map +1 -1
  316. package/dist/pages/values.d.ts +1 -0
  317. package/dist/pages/values.d.ts.map +1 -1
  318. package/dist/pages.d.ts +13 -16
  319. package/dist/pages.d.ts.map +1 -1
  320. package/dist/pages.js +6729 -4370
  321. package/dist/pages.js.map +32 -26
  322. package/dist/sections/catalog.d.ts.map +1 -1
  323. package/dist/sections/sections.d.ts.map +1 -1
  324. package/dist/server.js +68 -39
  325. package/dist/server.js.map +5 -5
  326. package/package.json +4 -4
  327. package/src/agent/activity-label.ts +17 -2
  328. package/src/agent/agent-chat.tsx +92 -104
  329. package/src/agent/agent-context-provider.tsx +1 -0
  330. package/src/agent/agent.css +82 -0
  331. package/src/agent/approvals.ts +268 -0
  332. package/src/agent/artifact-panel.tsx +22 -13
  333. package/src/agent/bash/bash-tool-view.tsx +98 -6
  334. package/src/agent/bash/interpret.ts +265 -3
  335. package/src/agent/bash/model-media-view.tsx +474 -0
  336. package/src/agent/bash/shell.ts +3 -2
  337. package/src/agent/components/agent-message-body.tsx +56 -0
  338. package/src/agent/components/agent-thread-switcher.tsx +216 -43
  339. package/src/agent/components/approval-card.tsx +840 -0
  340. package/src/agent/components/approval-mode-chip.tsx +227 -0
  341. package/src/agent/components/auto-model-chip.tsx +283 -0
  342. package/src/agent/components/composer.tsx +73 -3
  343. package/src/agent/components/context-chips.tsx +5 -6
  344. package/src/agent/components/conversation-panel.tsx +27 -149
  345. package/src/agent/components/message-parts.tsx +169 -54
  346. package/src/agent/components/message-view.tsx +114 -167
  347. package/src/agent/components/model-controls.tsx +29 -3
  348. package/src/agent/components/model-picker-row.tsx +22 -4
  349. package/src/agent/components/participant-input.tsx +165 -0
  350. package/src/agent/components/provider-logo.tsx +6 -1
  351. package/src/agent/components/reasoning-effort-slider.tsx +10 -8
  352. package/src/agent/components/sandbox-recovery.tsx +24 -5
  353. package/src/agent/components/shared-thread-notice.tsx +34 -0
  354. package/src/agent/components/thread-artifacts-menu.tsx +29 -12
  355. package/src/agent/components/thread-people.tsx +521 -0
  356. package/src/agent/components/transcript.tsx +314 -147
  357. package/src/agent/conversation.ts +634 -0
  358. package/src/agent/delegation/child-card.tsx +398 -0
  359. package/src/agent/delegation/child-cards.tsx +144 -0
  360. package/src/agent/delegation/child-group.tsx +150 -0
  361. package/src/agent/delegation/child-parts.tsx +321 -0
  362. package/src/agent/delegation/child-work.tsx +244 -0
  363. package/src/agent/delegation/context.ts +28 -0
  364. package/src/agent/delegation/interpret.ts +407 -0
  365. package/src/agent/delegation/model.ts +159 -0
  366. package/src/agent/delegation/use-children.ts +235 -0
  367. package/src/agent/hooks/use-agent-conversation.ts +856 -93
  368. package/src/agent/hooks/use-thread-sharing.ts +197 -0
  369. package/src/agent/i18n/en.ts +322 -0
  370. package/src/agent/i18n/fr.ts +334 -0
  371. package/src/agent/live-run.ts +23 -40
  372. package/src/agent/memory-paths.ts +41 -0
  373. package/src/agent/message-agent/interpret.ts +60 -0
  374. package/src/agent/message-authors.ts +115 -0
  375. package/src/agent/model-selection.ts +15 -0
  376. package/src/agent/observed-conversation.tsx +210 -0
  377. package/src/agent/observed-thread.ts +13 -0
  378. package/src/agent/parts.ts +23 -0
  379. package/src/agent/publish-artifact/use-live-publishes.ts +5 -2
  380. package/src/agent/read/interpret.ts +18 -0
  381. package/src/agent/read/read-tool-view.tsx +2 -2
  382. package/src/agent/run-presentation.ts +37 -1
  383. package/src/agent/sharing.ts +95 -0
  384. package/src/agent/tool-views/built-in.tsx +56 -0
  385. package/src/agent/tool-views/define.ts +150 -0
  386. package/src/agent/tool-views/registry.tsx +125 -0
  387. package/src/agent/utils/radio-group.ts +29 -0
  388. package/src/artifacts/artifacts.css +96 -0
  389. package/src/artifacts/card-details.ts +9 -1
  390. package/src/artifacts/card-preview.tsx +23 -12
  391. package/src/artifacts/downloads.tsx +130 -0
  392. package/src/artifacts/edit-session.tsx +115 -0
  393. package/src/artifacts/file-source.ts +94 -4
  394. package/src/artifacts/file-type-icon.tsx +114 -0
  395. package/src/artifacts/frame-embeds.tsx +113 -0
  396. package/src/artifacts/frame.tsx +143 -19
  397. package/src/artifacts/gallery.tsx +3 -0
  398. package/src/artifacts/history.ts +42 -0
  399. package/src/artifacts/kind-icon.tsx +31 -1
  400. package/src/artifacts/messages.ts +601 -16
  401. package/src/artifacts/page-queries.ts +80 -0
  402. package/src/artifacts/page-state.ts +211 -0
  403. package/src/artifacts/people.ts +19 -0
  404. package/src/artifacts/person-avatar.tsx +40 -0
  405. package/src/artifacts/publish-edit.ts +90 -0
  406. package/src/artifacts/queries.ts +242 -5
  407. package/src/artifacts/references/references.tsx +219 -18
  408. package/src/artifacts/renderers/canvas/arrows.tsx +134 -0
  409. package/src/artifacts/renderers/canvas/board.tsx +108 -0
  410. package/src/artifacts/renderers/canvas/canvas.tsx +195 -0
  411. package/src/artifacts/renderers/canvas/controls.tsx +75 -0
  412. package/src/artifacts/renderers/canvas/draft.ts +322 -0
  413. package/src/artifacts/renderers/canvas/edit-mode.tsx +301 -0
  414. package/src/artifacts/renderers/canvas/editing.tsx +187 -0
  415. package/src/artifacts/renderers/canvas/focus.tsx +128 -0
  416. package/src/artifacts/renderers/canvas/items.tsx +380 -0
  417. package/src/artifacts/renderers/canvas/layout.ts +132 -0
  418. package/src/artifacts/renderers/canvas/renderer.tsx +110 -0
  419. package/src/artifacts/renderers/canvas/thumbnail.tsx +144 -0
  420. package/src/artifacts/renderers/canvas/toolbar.tsx +316 -0
  421. package/src/artifacts/renderers/notice.tsx +3 -1
  422. package/src/artifacts/renderers/page.tsx +152 -0
  423. package/src/artifacts/renderers/sheet/cell-editor.tsx +125 -0
  424. package/src/artifacts/renderers/sheet/cells.tsx +462 -0
  425. package/src/artifacts/renderers/sheet/chart-data.ts +124 -14
  426. package/src/artifacts/renderers/sheet/chart-icon.ts +18 -0
  427. package/src/artifacts/renderers/sheet/chart-locked.tsx +30 -0
  428. package/src/artifacts/renderers/sheet/chart.tsx +153 -3
  429. package/src/artifacts/renderers/sheet/column-format.tsx +413 -0
  430. package/src/artifacts/renderers/sheet/column-menu.tsx +198 -0
  431. package/src/artifacts/renderers/sheet/downloads.tsx +88 -0
  432. package/src/artifacts/renderers/sheet/draft.ts +589 -0
  433. package/src/artifacts/renderers/sheet/filter-panel.tsx +255 -0
  434. package/src/artifacts/renderers/sheet/filter.ts +182 -0
  435. package/src/artifacts/renderers/sheet/find-bar.tsx +177 -0
  436. package/src/artifacts/renderers/sheet/find.ts +50 -0
  437. package/src/artifacts/renderers/sheet/fit.ts +54 -0
  438. package/src/artifacts/renderers/sheet/format.ts +48 -7
  439. package/src/artifacts/renderers/sheet/frame.tsx +531 -0
  440. package/src/artifacts/renderers/sheet/grid.tsx +1266 -287
  441. package/src/artifacts/renderers/sheet/highlight.ts +83 -0
  442. package/src/artifacts/renderers/sheet/input.ts +191 -0
  443. package/src/artifacts/renderers/sheet/locked.ts +112 -0
  444. package/src/artifacts/renderers/sheet/mini-chart.tsx +72 -4
  445. package/src/artifacts/renderers/sheet/model.ts +69 -8
  446. package/src/artifacts/renderers/sheet/selection.ts +136 -9
  447. package/src/artifacts/renderers/sheet/sheet.tsx +440 -264
  448. package/src/artifacts/renderers/sheet/totals.ts +54 -0
  449. package/src/artifacts/renderers/sheet/view.ts +96 -0
  450. package/src/artifacts/renderers/sheet/workbook.ts +107 -8
  451. package/src/artifacts/renderers/sheet/xlsx.ts +516 -0
  452. package/src/artifacts/renderers/sheet/zip.ts +108 -0
  453. package/src/artifacts/renderers/slides/slides.tsx +3 -55
  454. package/src/artifacts/tones.ts +14 -0
  455. package/src/artifacts/viewer.tsx +915 -96
  456. package/src/auth.ts +8 -2
  457. package/src/codegen.ts +29 -12
  458. package/src/createCustomApp.ts +59 -18
  459. package/src/index.ts +72 -2
  460. package/src/locale-messages.ts +2 -0
  461. package/src/metadata.ts +16 -3
  462. package/src/pages/observability/action-run.tsx +5 -1
  463. package/src/pages/observability/activity/messages.ts +16 -0
  464. package/src/pages/observability/activity/thread.tsx +150 -0
  465. package/src/pages/observability/activity/timeline.tsx +40 -3
  466. package/src/pages/observability/ai-usage/calls.tsx +61 -18
  467. package/src/pages/observability/ai-usage/format.ts +61 -8
  468. package/src/pages/observability/ai-usage/kinds.tsx +156 -0
  469. package/src/pages/observability/ai-usage/messages.ts +91 -14
  470. package/src/pages/observability/ai-usage/page.tsx +157 -48
  471. package/src/pages/observability/messages.ts +3 -0
  472. package/src/pages/ontology/actions.tsx +25 -4
  473. package/src/pages/ontology/components/action-button.tsx +53 -17
  474. package/src/pages/ontology/components/user-picker.tsx +161 -0
  475. package/src/pages/ontology/object-type.tsx +6 -0
  476. package/src/pages/ontology/workflows/run-input-form.tsx +12 -1
  477. package/src/pages/routes.ts +5 -0
  478. package/src/pages/section-page.tsx +27 -0
  479. package/src/pages/section-ui.tsx +3 -2
  480. package/src/pages/settings/controls.tsx +10 -2
  481. package/src/pages/settings/members.tsx +1 -5
  482. package/src/pages/settings/memory-contents.tsx +173 -0
  483. package/src/pages/settings/memory-entries.ts +112 -0
  484. package/src/pages/settings/memory-files.ts +195 -0
  485. package/src/pages/settings/memory-history.tsx +559 -0
  486. package/src/pages/settings/memory.tsx +993 -0
  487. package/src/pages/settings/messages.ts +232 -2
  488. package/src/pages/settings/personal.tsx +247 -27
  489. package/src/pages/settings/service-accounts.tsx +1 -1
  490. package/src/pages/settings/sessions.tsx +1 -4
  491. package/src/pages/values.tsx +65 -10
  492. package/src/pages.ts +16 -26
  493. package/src/sections/catalog.ts +18 -1
  494. package/src/sections/sections.tsx +2 -0
  495. package/dist/chunk-c7gy61rx.js.map +0 -10
  496. package/dist/chunk-gn3k23q5.js.map +0 -10
  497. package/dist/chunk-ng0hdnrq.js.map +0 -10
  498. package/dist/chunk-xxpdn63v.js +0 -15018
  499. package/dist/chunk-xxpdn63v.js.map +0 -105
  500. /package/dist/{chunk-g3f4cm8x.js.map → chunk-k4epnkcr.js.map} +0 -0
  501. /package/dist/{chunk-3schcf10.js.map → chunk-vtp6nk44.js.map} +0 -0
package/README.md CHANGED
@@ -103,6 +103,8 @@ Settings comes the same way: `/settings` and its pages (`personal`, `developers`
103
103
 
104
104
  The built-in agent pages and the agent components both live in `@sixb/app` (`src/agent/`). A framework-owned `framework.css` bundle is generated before the app stylesheet and imports normal `@sixb/ui` styles, which means app-level token overrides in `app/globals.css` still apply in the usual way. With a Tailwind `app/globals.css`, the framework's sources and `src/agent/agent.css` join the app's own build instead.
105
105
 
106
+ A tool call in a reply renders through one registry (`src/agent/tool-views/`): the project's view of that tool if there is one, else the framework's own view (`bash`, `read`, web results…), else the generic row. The project's views come from the layout's `toolViews` export, read through the same namespace import and handed to every chat by `AgentToolViewsProvider` around the root layout, shared links included.
107
+
106
108
  The routed page uses the same conversation header, history dialog, and new-thread flow as an
107
109
  embedded agent panel. Applications that want a conversation to move between a full page and an
108
110
  in-app dock should mount one `AgentSurface` in their shell and derive its `fullPage` presentation
@@ -185,6 +187,10 @@ should occupy the main application canvas. Connect `onRequestFullPage` and `onRe
185
187
  navigation; leaving that route returns the session to its dock without changing the selected
186
188
  thread.
187
189
 
190
+ For a chat with its own layout, build it from the parts these use: `useAgentConversation`,
191
+ `Transcript`, `Composer` and the rest are listed in
192
+ [Build your own chat](../../docs/models/overview.md#build-your-own-chat).
193
+
188
194
  ### Styling and Tailwind
189
195
 
190
196
  `app/globals.css` is treated as source:
@@ -1 +1 @@
1
- {"version":3,"file":"activity-label.d.ts","sourceRoot":"","sources":["../../src/agent/activity-label.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,aAAa,EAAM,MAAM,WAAW,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,SAAS,CAAA;AAM7D,qFAAqF;AACrF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,QAAQ,GAAE,aAAkB,GAC3B,MAAM,CASR"}
1
+ {"version":3,"file":"activity-label.d.ts","sourceRoot":"","sources":["../../src/agent/activity-label.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,aAAa,EAAM,MAAM,WAAW,CAAA;AAElD,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,SAAS,CAAA;AAM7D,qFAAqF;AACrF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,QAAQ,GAAE,aAAkB,GAC3B,MAAM,CASR"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
2
  import type { ArtifactTarget } from "../artifacts/target";
3
3
  import type { AgentContextInput } from "./types";
4
4
  export interface AgentChatProps {
@@ -1 +1 @@
1
- {"version":3,"file":"agent-chat.d.ts","sourceRoot":"","sources":["../../src/agent/agent-chat.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AgB,SAAS,CAAC,EACxB,QAAQ,EAAE,aAAoB,EAC9B,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,cAAmB,EACnB,OAAe,EACf,cAAc,EACd,YAAY,EACZ,cAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,yBAAyB,EAAE,iBAAiB,EAC5C,mBAAmB,GACpB,EAAE,cAAc,+BAiKhB"}
@@ -5,5 +5,6 @@ export declare function AgentContextProvider({ children }: {
5
5
  }): import("react").JSX.Element;
6
6
  /** Register ambient page context for every descendant AgentPanel that is not context-controlled. */
7
7
  export declare function useAgentContext(context: AgentContextInput | null | undefined): void;
8
+ /** The context pages registered with {@link useAgentContext}, for a chat's `ambientContext`. */
8
9
  export declare function useRegisteredAgentContext(): readonly AgentContextInput[];
9
10
  //# sourceMappingURL=agent-context-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-context-provider.d.ts","sourceRoot":"","sources":["../../src/agent/agent-context-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAEL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AAYd,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAkClF;AAED,oGAAoG;AACpG,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAwBnF;AAED,wBAAgB,yBAAyB,IAAI,SAAS,iBAAiB,EAAE,CAExE"}
1
+ {"version":3,"file":"agent-context-provider.d.ts","sourceRoot":"","sources":["../../src/agent/agent-context-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAEL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AAYd,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAkClF;AAED,oGAAoG;AACpG,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAwBnF;AAED,gGAAgG;AAChG,wBAAgB,yBAAyB,IAAI,SAAS,iBAAiB,EAAE,CAExE"}
@@ -0,0 +1,110 @@
1
+ import type { DecideAgentApprovalResponse, ListAgentThreadApprovalsResponse } from "@sixb/client";
2
+ import type { AgentConversationMessage } from "./conversation";
3
+ import type { NormalizedPart } from "./parts";
4
+ import type { AgentMessage, AgentRun } from "./types";
5
+ /** A call the agent made that waits, or waited, for its requester's decision. */
6
+ export type AgentApproval = ListAgentThreadApprovalsResponse["approvals"][number];
7
+ export type AgentApprovalStatus = AgentApproval["status"];
8
+ /** What the agent may change without asking, from the strictest. */
9
+ export declare const AGENT_APPROVAL_MODES: readonly ["manual", "accept-edits", "auto"];
10
+ export type AgentApprovalMode = (typeof AGENT_APPROVAL_MODES)[number];
11
+ /**
12
+ * The mode Shift+Tab switches to: between Manual and Accept edits only. Auto is chosen from the menu,
13
+ * never reached by a key pressed in passing; from Auto, the key goes back to Manual.
14
+ */
15
+ export declare function toggledApprovalMode(mode: AgentApprovalMode): AgentApprovalMode;
16
+ /** Whether a turn in `mode` runs this call without asking. */
17
+ export declare function approvalModeAllows(mode: AgentApprovalMode, call: AgentApproval["call"]): boolean;
18
+ /** The mode "Always allow" leaves its requester in: the least that runs such a call. */
19
+ export declare function alwaysAllowMode(call: AgentApproval["call"]): AgentApprovalMode;
20
+ /** A turn that ended on calls waiting for its requester. It resumes once they decide. */
21
+ export declare function isAwaitingApproval(run: Pick<AgentRun, "status" | "finishReason"> | null): boolean;
22
+ /** The call a held command names, as the API answered it: enough to show it before its record. */
23
+ export type HeldCall = {
24
+ readonly id: string;
25
+ readonly kind: "action";
26
+ readonly actionId: string;
27
+ readonly subject?: {
28
+ readonly objectTypeId: string;
29
+ readonly primaryId: string;
30
+ };
31
+ } | {
32
+ readonly id: string;
33
+ readonly kind: "workflow";
34
+ readonly workflowId: string;
35
+ };
36
+ /**
37
+ * The calls a `bash` output says are waiting for approval. The CLI prints the API's 202 answer as
38
+ * one JSON line and exits 4, but the output is the model's to shape, so every line is read and the
39
+ * exit code is not trusted: only the approval's record says what waits, and a line that names no
40
+ * record shows nothing to act on.
41
+ */
42
+ export declare function heldCallsInOutput(output: unknown): HeldCall[];
43
+ /** The held calls of an assistant message's tools, in the order they were made. */
44
+ export declare function heldCallsInParts(parts: readonly NormalizedPart[]): HeldCall[];
45
+ /** The ids of the held calls the transcript's replies, saved or streaming, already show a card for. */
46
+ export declare function heldCallIdsInMessages(messages: readonly AgentConversationMessage[]): ReadonlySet<string>;
47
+ /**
48
+ * A user message Sixb wrote to resume a turn: it carries only how the held calls ended, which the
49
+ * transcript shows on their cards.
50
+ */
51
+ export declare function isApprovalOutcomeMessage(message: AgentMessage): boolean;
52
+ /** A held call as its card names it, from its record. */
53
+ export declare function heldCallOf(approval: AgentApproval): HeldCall;
54
+ /** How a call the transcript holds no record of ended, from the message that told the agent. */
55
+ export interface ReportedApprovalOutcome {
56
+ readonly status: Exclude<AgentApprovalStatus, "pending">;
57
+ readonly outcome?: AgentApproval["outcome"];
58
+ /** The sub-agent that made it, when the turn did not. */
59
+ readonly caller?: AgentApproval["caller"];
60
+ }
61
+ /**
62
+ * How each held call ended, as the messages that resumed or followed its turn told the agent. A
63
+ * reader without the thread's approvals, such as an observer, still sees each card's outcome.
64
+ */
65
+ export declare function reportedApprovalOutcomes(messages: readonly AgentMessage[]): ReadonlyMap<string, ReportedApprovalOutcome>;
66
+ /** What a decision sends: approve, optionally for good in this thread, or deny. */
67
+ export interface AgentApprovalDecision {
68
+ readonly decision: "approve" | "deny";
69
+ readonly always?: true;
70
+ }
71
+ /** A decision that went through. `resume` says why the turn did not continue, when it did not. */
72
+ export type AgentApprovalDecided = Pick<DecideAgentApprovalResponse, "approval" | "resume">;
73
+ /** Why a decision did not go through, as the card tells it. */
74
+ export type AgentApprovalDecisionFailure = "expired"
75
+ /** Someone, on another device, decided first. */
76
+ | "decided" | "failed";
77
+ /** A decision that did not go through; nothing ran. */
78
+ export declare class AgentApprovalDecisionError extends Error {
79
+ readonly code: AgentApprovalDecisionFailure;
80
+ readonly name = "AgentApprovalDecisionError";
81
+ constructor(code: AgentApprovalDecisionFailure);
82
+ }
83
+ /** The held calls of a conversation, as its transcript shows and answers them. */
84
+ export interface TranscriptApprovals {
85
+ /** The thread's held calls, oldest first. */
86
+ readonly approvals: readonly AgentApproval[];
87
+ /** False until the first read: a card shows what its command said meanwhile. */
88
+ readonly loaded: boolean;
89
+ /** Whether the reader decides on this one: only whoever asked for its turn does. */
90
+ readonly canDecide: (approval: AgentApproval) => boolean;
91
+ /** Who decides on it, by name, for the others. */
92
+ readonly requesterName: (approval: AgentApproval) => string;
93
+ /**
94
+ * Whether the reader may stop the turn paused on this call: its requester, or the thread's owner.
95
+ * Stopping sets all of the turn's waiting calls aside, and the turn does not resume.
96
+ */
97
+ readonly canStop?: (approval: AgentApproval) => boolean;
98
+ /** Stop the paused turn; rejects when it could not. */
99
+ readonly stop?: (approval: AgentApproval) => Promise<void>;
100
+ /** Rejects with an {@link AgentApprovalDecisionError} when nothing was decided. */
101
+ readonly decide?: (approval: AgentApproval, decision: AgentApprovalDecision) => Promise<AgentApprovalDecided>;
102
+ }
103
+ /** What the cards of a transcript read: its approvals when it has them, and the reported outcomes. */
104
+ export interface ApprovalCardsContext {
105
+ readonly approvals: TranscriptApprovals | null;
106
+ readonly outcomes: ReadonlyMap<string, ReportedApprovalOutcome>;
107
+ }
108
+ export declare const ApprovalCardsContext: import("react").Context<ApprovalCardsContext>;
109
+ export declare function useApprovalCards(): ApprovalCardsContext;
110
+ //# sourceMappingURL=approvals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../src/ag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EAAE,WAAW,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAA;CAChE;AAED,eAAO,MAAM,oBAAoB,+CAG/B,CAAA;AAEF,wBAAgB,gBAAgB,IAAI,oBAAoB,CAEvD"}
@@ -13,13 +13,9 @@ export interface ArtifactPanelValue {
13
13
  }
14
14
  /** The artifact panel of the conversation around it, when there is one. */
15
15
  export declare function useArtifactPanel(): ArtifactPanelValue | null;
16
- /**
17
- * Shows one artifact or file beside the conversation. With `onRouteTargetChange`, an open artifact
18
- * lives in the page's URL so reloads and shared links land on it; a file stays local, since a
19
- * message file has no address of its own.
20
- */
21
- export declare function ArtifactPanelRoot({ children, compact, split, overlayHost, scopeKey, routeTarget, onRouteTargetChange, }: {
16
+ export interface ArtifactPanelRootProps {
22
17
  readonly children: ReactNode;
18
+ /** The conversation is narrow: open artifacts in a dialog, or over `overlayHost` when given. */
23
19
  readonly compact?: boolean;
24
20
  /** Use the resizable panel beside the conversation even when compact. */
25
21
  readonly split?: boolean;
@@ -29,7 +25,15 @@ export declare function ArtifactPanelRoot({ children, compact, split, overlayHos
29
25
  readonly scopeKey: string;
30
26
  readonly routeTarget?: ArtifactTarget | null;
31
27
  readonly onRouteTargetChange?: (target: ArtifactTarget | null) => void;
32
- }): import("react").JSX.Element;
28
+ /** Offer each artifact's own page, to open or to copy a link to. Off for an observer. */
29
+ readonly pageLinks?: boolean;
30
+ }
31
+ /**
32
+ * Shows one artifact or file beside the conversation. With `onRouteTargetChange`, an open artifact
33
+ * lives in the page's URL so reloads and shared links land on it; a file stays local, since a
34
+ * message file has no address of its own.
35
+ */
36
+ export declare function ArtifactPanelRoot({ children, compact, split, overlayHost, scopeKey, routeTarget, onRouteTargetChange, pageLinks, }: ArtifactPanelRootProps): import("react").JSX.Element;
33
37
  /**
34
38
  * Escape in a deck's overview or presentation takes the deck back to its slide; only then does it
35
39
  * close the dialog. The dialog hears Escape first, on the document, before the deck does.
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-panel.d.ts","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5C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAA;IACtE,yFAAyF;IACzF,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,OAAe,EACf,KAAa,EACb,WAAW,EACX,QAAQ,EACR,WAAkB,EAClB,mBAAmB,EACnB,SAAgB,GACjB,EAAE,sBAAsB,+BA6IxB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAG5D"}
@@ -1,3 +1,4 @@
1
+ import { type ModelMedia } from "./interpret";
1
2
  export interface BashTool {
2
3
  readonly state: "input-streaming" | "input-available" | "output-available" | "output-error";
3
4
  readonly input?: unknown;
@@ -14,4 +15,16 @@ export interface BashTool {
14
15
  export declare function BashToolView({ tool }: {
15
16
  tool: BashTool;
16
17
  }): import("react").JSX.Element;
18
+ /**
19
+ * The image or voice clip a bash step made or is making, which the work group shows under its
20
+ * closed line: what the user asked for, not how it was made. A failed call shows nothing, and so
21
+ * does a finished one whose output does not name its call (several calls in one step, or output
22
+ * piped elsewhere): there is nothing to fetch, so nothing to hold a place for.
23
+ */
24
+ export declare function generatedMedia(tool: BashTool): {
25
+ readonly media: Extract<ModelMedia, {
26
+ kind: "image" | "speech";
27
+ }>;
28
+ readonly running: boolean;
29
+ } | null;
17
30
  //# sourceMappingURL=bash-tool-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bash-tool-view.d.ts","sourceRoot":"","sources":["../../../src/agent/bash/bash-tool-view.tsx"],"names":[],"mappings":"AA0CA,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,cAAc,CAAA;IAC3F,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAeD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,+BA+ExD"}
1
+ {"version":3,"file":"bash-tool-view.d.ts","sourceRoot":"","sources":["../../../src/agent/bash/bash-tool-view.tsx"],"names":[],"mappings":"AAyBA,OAAO,EASL,KAAK,UAAU,EAGhB,MAAM,aAAa,CAAA;AAgBpB,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,cAAc,CAAA;IAC3F,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAoBD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,+BAuHxD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG;IAC9C,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;KAAE,CAAC,CAAA;IACjE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B,GAAG,IAAI,CAWP"}
@@ -1,4 +1,6 @@
1
1
  import { type AgentMessages } from "../i18n/en";
2
+ import { type MemoryFile } from "../memory-paths";
3
+ import type { NormalizedPart } from "../parts";
2
4
  /** The bash tool input as authored by the agent. */
3
5
  export interface BashInput {
4
6
  readonly command: string;
@@ -15,7 +17,9 @@ declare const CLI_COMMANDS: {
15
17
  readonly files: readonly ["upload", "download"];
16
18
  readonly workflows: readonly ["list", "get", "start"];
17
19
  readonly "workflow-runs": readonly ["list", "get"];
20
+ readonly models: readonly ["list", "get", "text", "image", "speech", "transcribe", "calls"];
18
21
  readonly api: readonly ["get", "post"];
22
+ readonly memory: readonly ["save", "pull"];
19
23
  };
20
24
  type CliGroup = keyof typeof CLI_COMMANDS;
21
25
  type CliCommandName = {
@@ -31,7 +35,12 @@ type AtomicBashIntent = {
31
35
  readonly kind: "read-skill";
32
36
  readonly skillName?: string;
33
37
  readonly reference?: string;
34
- } | {
38
+ }
39
+ /** Reading or editing the files of the Agent's memory. */
40
+ | ({
41
+ readonly kind: "memory";
42
+ readonly access: "read" | "write";
43
+ } & MemoryFile) | {
35
44
  readonly kind: "generic";
36
45
  readonly command: string;
37
46
  };
@@ -56,7 +65,7 @@ export interface ParsedBashOutput {
56
65
  export declare function coerceBashInput(input: unknown): BashInput | null;
57
66
  export declare function coerceBashOutput(output: unknown): ParsedBashOutput | null;
58
67
  export declare function classifyCommand(command: string): BashIntent;
59
- export type BashIcon = "ontology" | "objects" | "object" | "count" | "facets" | "telemetry" | "actions" | "project" | "skill" | "terminal";
68
+ export type BashIcon = "ontology" | "objects" | "object" | "count" | "facets" | "telemetry" | "actions" | "project" | "skill" | "image" | "audio" | "transcript" | "model" | "memory" | "terminal";
60
69
  interface BashDescription {
61
70
  readonly icon: BashIcon;
62
71
  /** Past-tense headline once the command has run, e.g. "Explored the ontology". */
@@ -69,8 +78,43 @@ interface BashDescription {
69
78
  export declare function describeBash(intent: BashIntent, parsed: ParsedBashOutput | null, messages?: AgentMessages): BashDescription;
70
79
  /** A stable one-line command preview. Multiline payloads stay folded behind the raw disclosure. */
71
80
  export declare function commandPreview(command: string, max?: number, messages?: AgentMessages): string;
81
+ /** One save of a turn: the repo, and what the save says the agent remembered. */
82
+ export interface SavedMemory {
83
+ readonly repo: "user" | "project";
84
+ readonly message: string;
85
+ }
86
+ /** What each memory save of a turn remembered, once each, in order. */
87
+ export declare function savedMemories(parts: readonly NormalizedPart[]): SavedMemory[];
72
88
  /** camelCase / PascalCase / kebab / snake → space-separated lowercase words. */
73
89
  export declare function humanize(value: string | undefined): string;
90
+ /** What a `sixb models` call takes and makes, as the chat shows it: its inputs and its output. */
91
+ export type ModelMedia = {
92
+ readonly kind: "image";
93
+ readonly prompt: string;
94
+ /** Local files the agent started from, by name. */
95
+ readonly sources: readonly string[];
96
+ readonly count: number;
97
+ /** Width over height, from the requested size or aspect ratio; square when unknown. */
98
+ readonly aspect: number;
99
+ readonly callId?: string;
100
+ /** Names of the files the command saved, in the call's order. */
101
+ readonly files?: readonly string[];
102
+ } | {
103
+ readonly kind: "speech";
104
+ readonly text: string;
105
+ readonly callId?: string;
106
+ readonly files?: readonly string[];
107
+ } | {
108
+ readonly kind: "transcript";
109
+ readonly source: string;
110
+ readonly text?: string;
111
+ readonly callId?: string;
112
+ } | {
113
+ readonly kind: "answer";
114
+ readonly prompt: string;
115
+ readonly text?: string;
116
+ };
117
+ export declare function modelMedia(intent: BashIntent, parsed: ParsedBashOutput | null): ModelMedia | null;
74
118
  /** A run status in words; statuses Sixb does not know yet are shown as they are. */
75
119
  export declare function runStatus(value: unknown, m?: AgentMessages["bash"]): string | undefined;
76
120
  /** "customer cust-001" for an object subject, otherwise undefined. */
@@ -1 +1 @@
1
- {"version":3,"file":"interpret.d.ts","sourceRoot":"","sources":["../../../src/agent/bash/interpret.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAM,MAAM,YAAY,CAAA;AAGnD,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,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,aAAa,CAAC,MAAM,CAAW,GAAG,MAAM,GAAG,SAAS,CAKhG;AA2BD,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAMjE;AAOD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAIzD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAExE;AA+CD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE"}
@@ -0,0 +1,14 @@
1
+ import type { ModelMedia } from "./interpret";
2
+ export declare function ModelMediaView({ media, running, }: {
3
+ readonly media: Exclude<ModelMedia, {
4
+ kind: "answer";
5
+ }>;
6
+ readonly running: boolean;
7
+ }): import("react").JSX.Element;
8
+ /** Another model's answer: the question as a caption, then the answer. */
9
+ export declare function ModelAnswerView({ media, }: {
10
+ readonly media: Extract<ModelMedia, {
11
+ kind: "answer";
12
+ }>;
13
+ }): import("react").JSX.Element;
14
+ //# sourceMappingURL=model-media-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-media-view.d.ts","sourceRoot":"","sources":["../../../src/agent/bash/model-media-view.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAQ7C,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAA;IACvD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B,+BAIA;AAuaD,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,EAC9B,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC,CAAA;CACxD,+BAmBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../../src/agent/bash/shell.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,CAAA;AAE/D,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,CAAA;CACxC;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,YAAY,EAAE,GAAG,IAAI,CAsJ/E;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAE5E;AAED,gGAAgG;AAChG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAkB9E"}
1
+ {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../../src/agent/bash/shell.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,CAAA;AAE/D,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,CAAA;CACxC;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,YAAY,EAAE,GAAG,IAAI,CAuJ/E;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAE5E;AAED,gGAAgG;AAChG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAkB9E"}
@@ -0,0 +1,21 @@
1
+ import { type AgentConversationMessage, type AgentConversationToolPart } from "../conversation";
2
+ export interface AgentMessageBodyProps {
3
+ /** A reply from `conversation.messages`. A user message draws nothing. */
4
+ readonly message: AgentConversationMessage;
5
+ }
6
+ /**
7
+ * What a reply says, drawn as the built-in chat draws it: its work folded into one line, its text,
8
+ * the tool views placed in the answer, the artifacts it published and what it saved to memory.
9
+ * While the reply streams, its first artifact opens beside the conversation.
10
+ */
11
+ export declare function AgentMessageBody({ message }: AgentMessageBodyProps): import("react").JSX.Element | null;
12
+ export interface AgentToolPartProps {
13
+ readonly part: AgentConversationToolPart;
14
+ }
15
+ /**
16
+ * One tool call, where a custom chat places it: the project's view of the tool from `toolViews`,
17
+ * else the framework's own, else a row to inspect its input and output. A project view that throws
18
+ * falls back to the others.
19
+ */
20
+ export declare function AgentToolPart({ part }: AgentToolPartProps): import("react").JSX.Element;
21
+ //# sourceMappingURL=agent-message-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-message-body.d.ts","sourceRoot":"","sources":["../../../src/agent/components/agent-message-body.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAG/B,MAAM,iBAAiB,CAAA;AAMxB,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAA;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE,qBAAqB,sCAUlE;AAQD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAA;CACzC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,kBAAkB,+BAMzD"}
@@ -1,9 +1,30 @@
1
1
  import type { AgentThread } from "../types";
2
+ /** The conversations other people shared with the reader, paged like their own. */
3
+ export interface SharedThreadList {
4
+ readonly threads: readonly AgentThread[];
5
+ /** All of them, beyond the pages read so far. */
6
+ readonly total: number;
7
+ readonly error?: string | null;
8
+ readonly hasMore?: boolean;
9
+ readonly loadingMore?: boolean;
10
+ readonly loadMoreError?: boolean;
11
+ readonly onLoadMore?: () => void;
12
+ }
2
13
  export interface AgentThreadSwitcherProps {
3
14
  readonly agentName: string;
4
15
  readonly currentThread: AgentThread | null;
5
16
  readonly threads: readonly AgentThread[];
17
+ /**
18
+ * Conversations other people shared with the reader, listed apart from their own. Omitted
19
+ * where nothing can be shared, without a signed-in user.
20
+ */
21
+ readonly sharedThreads?: SharedThreadList;
6
22
  readonly runningThreadCount?: number;
23
+ /**
24
+ * The threads where a call waits for the reader's approval: they open the list, each row says so,
25
+ * and the button counts them.
26
+ */
27
+ readonly waitingThreadIds?: ReadonlySet<string>;
7
28
  readonly threadsError?: string | null;
8
29
  readonly hasMoreThreads?: boolean;
9
30
  readonly loadingMoreThreads?: boolean;
@@ -12,5 +33,5 @@ export interface AgentThreadSwitcherProps {
12
33
  readonly onSelectThread: (threadId: string) => void;
13
34
  readonly onNewThread?: () => void;
14
35
  }
15
- export declare function AgentThreadSwitcher({ agentName, currentThread, threads, runningThreadCount, threadsError, hasMoreThreads, loadingMoreThreads, loadMoreThreadsError, onLoadMoreThreads, onSelectThread, onNewThread, }: AgentThreadSwitcherProps): import("react").JSX.Element;
36
+ export declare function AgentThreadSwitcher({ agentName, currentThread, threads, sharedThreads, runningThreadCount, waitingThreadIds, threadsError, hasMoreThreads, loadingMoreThreads, loadMoreThreadsError, onLoadMoreThreads, onSelectThread, onNewThread, }: AgentThreadSwitcherProps): import("react").JSX.Element;
16
37
  //# sourceMappingURL=agent-thread-switcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-thread-switcher.d.ts","sourceRoot":"","sources":["../../../src/agent/components/agent-thread-switcher.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1C,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAA;IACxC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IACrC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IACvC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IACvC,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;CAClC;AAED,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,WAAW,GACZ,EAAE,wBAAwB,+BAiM1B"}
1
+ {"version":3,"file":"agent-thread-switcher.d.ts","s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AAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;CAClC;AAED,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,aAAa,EACb,OAAO,EACP,aAAa,EACb,kBAAsB,EACtB,gBAAqC,EACrC,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,WAAW,GACZ,EAAE,wBAAwB,+BA0S1B"}
@@ -0,0 +1,17 @@
1
+ import { type HeldCall } from "../approvals";
2
+ /** The cards of the calls a turn held, one under the other. */
3
+ export declare function ApprovalCards({ calls }: {
4
+ readonly calls: readonly HeldCall[];
5
+ }): import("react").JSX.Element | null;
6
+ /**
7
+ * One call the agent made that waits for, or waited for, its requester: what it does, to which
8
+ * record, with which values, and whether it stays in the project's data. Whoever asked for the turn
9
+ * approves or denies it here; everyone else reads it, and who decides. A call the thread holds no
10
+ * record of shows only when a message reported how it ended. `inCard`: it sits in the card of the
11
+ * sub-agent that made it, which names it already.
12
+ */
13
+ export declare function ApprovalCard({ held, inCard, }: {
14
+ readonly held: HeldCall;
15
+ readonly inCard?: boolean;
16
+ }): import("react").JSX.Element | null;
17
+ //# sourceMappingURL=approval-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-card.d.ts","sourceRoot":"","sources":["../../../src/agent/components/approval-card.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAOL,KAAK,QAAQ,EAEd,MAAM,cAAc,CAAA;AAWrB,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CAAE,sCAU/E;AAsCD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,MAAc,GACf,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B,sCAuTA"}
@@ -0,0 +1,17 @@
1
+ import { type LucideIcon } from "lucide-react";
2
+ import { type AgentApprovalMode } from "../approvals";
3
+ export declare const APPROVAL_MODE_ICONS: Readonly<Record<AgentApprovalMode, LucideIcon>>;
4
+ export interface ApprovalModeChipProps {
5
+ readonly mode: AgentApprovalMode;
6
+ /** The reader's mode for new conversations, which the menu offers to change. */
7
+ readonly defaultMode?: AgentApprovalMode;
8
+ readonly onChange: (mode: AgentApprovalMode) => void;
9
+ readonly onMakeDefault?: (mode: AgentApprovalMode) => void;
10
+ readonly disabled?: boolean;
11
+ }
12
+ /**
13
+ * What the agent may change without asking, in the composer: a pill that names the mode, and a
14
+ * menu of the three with what each does. A phone shows the icon alone and opens a bottom sheet.
15
+ */
16
+ export declare function ApprovalModeChip({ mode, defaultMode, onChange, onMakeDefault, disabled, }: ApprovalModeChipProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=approval-mode-chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-mode-chip.d.ts","sourceRoot":"","sources":["../../../src/agent/components/approval-mode-chip.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAsB,KAAK,UAAU,EAAgC,MAAM,cAAc,CAAA;AAEhG,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAI3E,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAI/E,CAAA;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAA;IAChC,gFAAgF;IAChF,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IACxC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACpD,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,aAAa,EACb,QAAQ,GACT,EAAE,qBAAqB,+BA6FvB"}
@@ -0,0 +1,24 @@
1
+ import { type ModelReasoningLevel } from "@sixb/core/models";
2
+ import type { LanguageModel } from "../types";
3
+ export interface AutoModelChipProps {
4
+ readonly models: readonly LanguageModel[];
5
+ /** The model pinned in this conversation; without one, Auto. */
6
+ readonly selectedModel?: LanguageModel;
7
+ readonly selectedReasoning?: ModelReasoningLevel;
8
+ /** A decision model picks each message's model on Auto; without one, Auto runs `standard`. */
9
+ readonly routing?: boolean;
10
+ readonly disabled?: boolean;
11
+ readonly onSelectModel: (model: LanguageModel) => void;
12
+ readonly onSelectReasoning: (reasoning: ModelReasoningLevel) => void;
13
+ readonly onResetReasoning?: () => void;
14
+ /** Forget the conversation's pin, including one whose model left the catalog. */
15
+ readonly onChooseAuto: () => void;
16
+ }
17
+ /**
18
+ * The model choice when `models.language` uses tiers, beside the send button: "Auto" until a
19
+ * model is pinned, then that model with a × back to Auto. The menu lists Auto, then each tier's
20
+ * models; a pinned model's reasoning shows under them. A phone keeps a short label and opens a
21
+ * bottom sheet, as the approval mode chip does.
22
+ */
23
+ export declare function AutoModelChip({ models, selectedModel, selectedReasoning, routing, disabled, onSelectModel, onSelectReasoning, onResetReasoning, onChooseAuto, }: AutoModelChipProps): import("react").JSX.Element;
24
+ //# sourceMappingURL=auto-model-chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-model-chip.d.ts","sourceRoot":"","sources":["../../../src/agent/components/auto-model-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAiBlF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAM7C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAA;IACzC,gEAAgE;IAChE,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAA;IACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,mBAAmB,CAAA;IAChD,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACtD,QAAQ,CAAC,iBAAiB,EAAE,CAAC,SAAS,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACpE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IACtC,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,MAAM,IAAI,CAAA;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,OAAe,EACf,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,GACb,EAAE,kBAAkB,+BAmIpB"}
@@ -1,11 +1,15 @@
1
1
  import { type AgentContextEntryInput, type AgentContextInput } from "@sixb/core/agents/context";
2
2
  import type { ModelReasoningLevel } from "@sixb/core/models";
3
+ import { type AgentApprovalMode } from "../approvals";
3
4
  import type { AgentFileRef, LanguageModel } from "../types";
4
5
  export interface ComposerProps {
5
6
  readonly onSend: (text: string, attachments: readonly AgentFileRef[], context: readonly AgentContextEntryInput[]) => void;
6
7
  readonly disabled?: boolean;
7
8
  readonly pending?: boolean;
8
- /** A run is in flight: the send button becomes a stop button that calls {@link onStop}. */
9
+ /**
10
+ * A run is in flight: the send button becomes a stop button that calls {@link onStop}, or stays
11
+ * disabled without one, when the reader may not stop someone else's answer.
12
+ */
9
13
  readonly running?: boolean;
10
14
  /** A stop has been requested and we're waiting for the run to end. */
11
15
  readonly stopping?: boolean;
@@ -20,7 +24,10 @@ export interface ComposerProps {
20
24
  readonly onResetReasoning?: () => void;
21
25
  /** The model selection follows the project defaults. */
22
26
  readonly usingDefaultModel?: boolean;
27
+ /** Follow the project defaults again. With tiers, back to Auto, which `selectedModel` unset shows. */
23
28
  readonly onResetModelSelection?: () => void;
29
+ /** With tiers: a decision model picks each message's model on Auto. */
30
+ readonly modelRouting?: boolean;
24
31
  readonly placeholder?: string;
25
32
  /** Optional classes for the composer shell. */
26
33
  readonly className?: string;
@@ -41,7 +48,19 @@ export interface ComposerProps {
41
48
  readonly ambientContext?: readonly AgentContextInput[];
42
49
  /** Scope drag/drop and overlays to an embedded panel instead of the whole viewport. */
43
50
  readonly compact?: boolean;
51
+ /**
52
+ * What the agent may change without asking in the reader's next turns. With
53
+ * {@link onApprovalModeChange}, the composer shows it as a chip, and Shift+Tab in an empty input
54
+ * switches between Manual and Accept edits.
55
+ */
56
+ readonly approvalMode?: AgentApprovalMode;
57
+ /** The reader's mode for new conversations, which the chip's menu offers to change. */
58
+ readonly defaultApprovalMode?: AgentApprovalMode;
59
+ readonly onApprovalModeChange?: (mode: AgentApprovalMode) => void;
60
+ readonly onMakeApprovalModeDefault?: (mode: AgentApprovalMode) => void;
61
+ /** A turn waits for the reader's approval: the input says how to answer it or move on. */
62
+ readonly awaitingApproval?: boolean;
44
63
  }
45
64
  export declare function composerCanFocus({ disabled, pending, running, }: Pick<ComposerProps, "disabled" | "pending" | "running">): boolean;
46
- export declare function Composer({ onSend, disabled, pending, running, stopping, onStop, models, selectedModel, selectedReasoning, modelsLoading, modelsError, onSelectModel, onSelectReasoning, onResetReasoning, usingDefaultModel, onResetModelSelection, placeholder, className, hint, error, draft, draftAttachments, draftContext, draftNonce, ambientContext, compact, }: ComposerProps): import("react").JSX.Element;
65
+ export declare function Composer({ onSend, disabled, pending, running, stopping, onStop, models, selectedModel, selectedReasoning, modelsLoading, modelsError, onSelectModel, onSelectReasoning, onResetReasoning, usingDefaultModel, onResetModelSelection, modelRouting, placeholder, className, hint, error, draft, draftAttachments, draftContext, draftNonce, ambientContext, compact, approvalMode, defaultApprovalMode, onApprovalModeChange, onMakeApprovalModeDefault, awaitingApproval, }: ComposerProps): import("react").JSX.Element;
47
66
  //# sourceMappingURL=composer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"composer.d.ts","sourceRoot":"","sources":["../../../src/agent/components/composer.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EAKvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AA4B5D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAW3D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,CACf,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,SAAS,YAAY,EAAE,EACpC,OAAO,EAAE,SAAS,sBAAsB,EAAE,KACvC,IAAI,CAAA;IACT,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,2FAA2F;IAC3F,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;IAC1C,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAA;IACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,mBAAmB,CAAA;IAChD,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;IAChC,QAAQ,CAAC,WAA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;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,CAAA;IACzC,uFAAuF;IACvF,QAAQ,CAAC,mBAAmB,CAAC,EAAE,iBAAiB,CAAA;IAChD,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACjE,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;IACtE,0FAA0F;IAC1F,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CACpC;AAyBD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,OAAO,EACP,OAAO,GACR,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC,GAAG,OAAO,CAEnE;AAED,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAW,EACX,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,IAAI,EACJ,KAAK,EACL,KAAK,EACL,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,cAAmB,EACnB,OAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,gBAAwB,GACzB,EAAE,aAAa,+BAmmBf"}
@@ -1,7 +1,9 @@
1
1
  import { type AgentContextEntryInput } from "@sixb/core/agents/context";
2
- export declare function ContextChips({ entries, onRemove, className, }: {
2
+ export interface ContextChipsProps {
3
3
  readonly entries: readonly AgentContextEntryInput[];
4
+ /** Shows a remove button on each chip. */
4
5
  readonly onRemove?: (index: number) => void;
5
6
  readonly className?: string;
6
- }): import("react").JSX.Element | null;
7
+ }
8
+ export declare function ContextChips({ entries, onRemove, className }: ContextChipsProps): import("react").JSX.Element | null;
7
9
  //# sourceMappingURL=context-chips.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-chips.d.ts","sourceRoot":"","sources":["../../../src/agent/components/context-chips.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,2BAA2B,CAAA;AAMlC,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACnD,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,sCAaA"}
1
+ {"version":3,"file":"context-chips.d.ts","sourceRoot":"","sources":["../../../src/agent/components/context-chips.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,2BAA2B,CAAA;AAMlC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACnD,0CAA0C;IAC1C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,sCAa/E"}