@sixb/app 0.1.13 → 0.1.15

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 (516) 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-gn3k23q5.js → chunk-53z5653y.js} +64 -3
  248. package/dist/chunk-53z5653y.js.map +11 -0
  249. package/dist/{chunk-3schcf10.js → chunk-736c9akn.js} +1 -1
  250. package/dist/{chunk-g3f4cm8x.js → chunk-k4epnkcr.js} +1 -1
  251. package/dist/{chunk-c7gy61rx.js → chunk-n0cxwvej.js} +165 -4
  252. package/dist/chunk-n0cxwvej.js.map +10 -0
  253. package/dist/chunk-qh1panvd.js +1487 -0
  254. package/dist/chunk-qh1panvd.js.map +18 -0
  255. package/dist/{chunk-ng0hdnrq.js → chunk-sw3pyqgy.js} +3 -1
  256. package/dist/chunk-sw3pyqgy.js.map +10 -0
  257. package/dist/chunk-twjs2sb9.js +29401 -0
  258. package/dist/chunk-twjs2sb9.js.map +176 -0
  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 +51 -9
  265. package/dist/index.js.map +6 -6
  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 +6766 -4391
  321. package/dist/pages.js.map +34 -28
  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 +79 -44
  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 +81 -111
  329. package/src/agent/agent-context-provider.tsx +1 -0
  330. package/src/agent/agent-panel.tsx +4 -0
  331. package/src/agent/agent-surface.tsx +4 -0
  332. package/src/agent/agent.css +115 -3
  333. package/src/agent/approvals.ts +267 -0
  334. package/src/agent/artifact-panel.tsx +131 -46
  335. package/src/agent/bash/bash-tool-view.tsx +98 -6
  336. package/src/agent/bash/interpret.ts +265 -3
  337. package/src/agent/bash/model-media-view.tsx +474 -0
  338. package/src/agent/bash/shell.ts +3 -2
  339. package/src/agent/components/activity-status.tsx +1 -1
  340. package/src/agent/components/agent-message-body.tsx +56 -0
  341. package/src/agent/components/agent-threads.tsx +377 -0
  342. package/src/agent/components/approval-card.tsx +849 -0
  343. package/src/agent/components/approval-mode-chip.tsx +120 -0
  344. package/src/agent/components/auto-model-chip.tsx +219 -0
  345. package/src/agent/components/composer-menu.tsx +185 -0
  346. package/src/agent/components/composer.tsx +95 -30
  347. package/src/agent/components/context-chips.tsx +6 -7
  348. package/src/agent/components/conversation-panel.tsx +38 -180
  349. package/src/agent/components/file-attachment-card.tsx +5 -2
  350. package/src/agent/components/message-parts.tsx +190 -59
  351. package/src/agent/components/message-view.tsx +289 -228
  352. package/src/agent/components/model-controls.tsx +162 -128
  353. package/src/agent/components/model-picker-row.tsx +50 -11
  354. package/src/agent/components/participant-input.tsx +293 -0
  355. package/src/agent/components/provider-logo.tsx +6 -1
  356. package/src/agent/components/reasoning-effort-slider.tsx +37 -35
  357. package/src/agent/components/sandbox-recovery.tsx +24 -5
  358. package/src/agent/components/shared-thread-notice.tsx +34 -0
  359. package/src/agent/components/thread-artifacts-menu.tsx +29 -12
  360. package/src/agent/components/thread-people.tsx +551 -0
  361. package/src/agent/components/threads-button.tsx +70 -0
  362. package/src/agent/components/transcript.tsx +343 -147
  363. package/src/agent/conversation.ts +658 -0
  364. package/src/agent/delegation/child-card.tsx +338 -0
  365. package/src/agent/delegation/child-cards.tsx +141 -0
  366. package/src/agent/delegation/child-group.tsx +231 -0
  367. package/src/agent/delegation/child-parts.tsx +286 -0
  368. package/src/agent/delegation/child-work.tsx +198 -0
  369. package/src/agent/delegation/context.ts +28 -0
  370. package/src/agent/delegation/interpret.ts +379 -0
  371. package/src/agent/delegation/model.ts +235 -0
  372. package/src/agent/delegation/use-children.ts +235 -0
  373. package/src/agent/hooks/use-agent-conversation.ts +803 -125
  374. package/src/agent/hooks/use-people-suggestions.ts +90 -0
  375. package/src/agent/hooks/use-thread-lists.ts +77 -0
  376. package/src/agent/hooks/use-thread-sharing.ts +197 -0
  377. package/src/agent/i18n/en.ts +355 -20
  378. package/src/agent/i18n/fr.ts +371 -32
  379. package/src/agent/live-run.ts +23 -40
  380. package/src/agent/memory-paths.ts +41 -0
  381. package/src/agent/message-agent/interpret.ts +60 -0
  382. package/src/agent/message-authors.ts +115 -0
  383. package/src/agent/model-selection.ts +15 -0
  384. package/src/agent/observed-conversation.tsx +210 -0
  385. package/src/agent/observed-thread.ts +13 -0
  386. package/src/agent/parts.ts +23 -0
  387. package/src/agent/publish-artifact/use-live-publishes.ts +5 -2
  388. package/src/agent/react-router.tsx +48 -5
  389. package/src/agent/read/interpret.ts +18 -0
  390. package/src/agent/read/read-tool-view.tsx +2 -2
  391. package/src/agent/run-presentation.ts +41 -1
  392. package/src/agent/sharing.ts +95 -0
  393. package/src/agent/thread-navigation.ts +16 -0
  394. package/src/agent/thread-pages.ts +24 -0
  395. package/src/agent/tool-views/built-in.tsx +56 -0
  396. package/src/agent/tool-views/define.ts +150 -0
  397. package/src/agent/tool-views/registry.tsx +125 -0
  398. package/src/agent/utils/radio-group.ts +29 -0
  399. package/src/artifacts/artifacts.css +96 -0
  400. package/src/artifacts/card-details.ts +9 -1
  401. package/src/artifacts/card-preview.tsx +23 -12
  402. package/src/artifacts/downloads.tsx +130 -0
  403. package/src/artifacts/edit-session.tsx +115 -0
  404. package/src/artifacts/file-source.ts +94 -4
  405. package/src/artifacts/file-type-icon.tsx +114 -0
  406. package/src/artifacts/frame-embeds.tsx +113 -0
  407. package/src/artifacts/frame.tsx +143 -19
  408. package/src/artifacts/gallery.tsx +3 -0
  409. package/src/artifacts/history.ts +42 -0
  410. package/src/artifacts/kind-icon.tsx +31 -1
  411. package/src/artifacts/messages.ts +601 -16
  412. package/src/artifacts/page-queries.ts +80 -0
  413. package/src/artifacts/page-state.ts +211 -0
  414. package/src/artifacts/people.ts +19 -0
  415. package/src/artifacts/person-avatar.tsx +40 -0
  416. package/src/artifacts/publish-edit.ts +90 -0
  417. package/src/artifacts/queries.ts +242 -5
  418. package/src/artifacts/references/references.tsx +219 -18
  419. package/src/artifacts/renderers/canvas/arrows.tsx +134 -0
  420. package/src/artifacts/renderers/canvas/board.tsx +108 -0
  421. package/src/artifacts/renderers/canvas/canvas.tsx +195 -0
  422. package/src/artifacts/renderers/canvas/controls.tsx +75 -0
  423. package/src/artifacts/renderers/canvas/draft.ts +322 -0
  424. package/src/artifacts/renderers/canvas/edit-mode.tsx +301 -0
  425. package/src/artifacts/renderers/canvas/editing.tsx +187 -0
  426. package/src/artifacts/renderers/canvas/focus.tsx +128 -0
  427. package/src/artifacts/renderers/canvas/items.tsx +380 -0
  428. package/src/artifacts/renderers/canvas/layout.ts +132 -0
  429. package/src/artifacts/renderers/canvas/renderer.tsx +110 -0
  430. package/src/artifacts/renderers/canvas/thumbnail.tsx +144 -0
  431. package/src/artifacts/renderers/canvas/toolbar.tsx +316 -0
  432. package/src/artifacts/renderers/notice.tsx +3 -1
  433. package/src/artifacts/renderers/page.tsx +152 -0
  434. package/src/artifacts/renderers/sheet/cell-editor.tsx +125 -0
  435. package/src/artifacts/renderers/sheet/cells.tsx +462 -0
  436. package/src/artifacts/renderers/sheet/chart-data.ts +124 -14
  437. package/src/artifacts/renderers/sheet/chart-icon.ts +18 -0
  438. package/src/artifacts/renderers/sheet/chart-locked.tsx +30 -0
  439. package/src/artifacts/renderers/sheet/chart.tsx +153 -3
  440. package/src/artifacts/renderers/sheet/column-format.tsx +413 -0
  441. package/src/artifacts/renderers/sheet/column-menu.tsx +198 -0
  442. package/src/artifacts/renderers/sheet/downloads.tsx +88 -0
  443. package/src/artifacts/renderers/sheet/draft.ts +589 -0
  444. package/src/artifacts/renderers/sheet/filter-panel.tsx +255 -0
  445. package/src/artifacts/renderers/sheet/filter.ts +182 -0
  446. package/src/artifacts/renderers/sheet/find-bar.tsx +177 -0
  447. package/src/artifacts/renderers/sheet/find.ts +50 -0
  448. package/src/artifacts/renderers/sheet/fit.ts +54 -0
  449. package/src/artifacts/renderers/sheet/format.ts +48 -7
  450. package/src/artifacts/renderers/sheet/frame.tsx +531 -0
  451. package/src/artifacts/renderers/sheet/grid.tsx +1266 -287
  452. package/src/artifacts/renderers/sheet/highlight.ts +83 -0
  453. package/src/artifacts/renderers/sheet/input.ts +191 -0
  454. package/src/artifacts/renderers/sheet/locked.ts +112 -0
  455. package/src/artifacts/renderers/sheet/mini-chart.tsx +72 -4
  456. package/src/artifacts/renderers/sheet/model.ts +69 -8
  457. package/src/artifacts/renderers/sheet/selection.ts +136 -9
  458. package/src/artifacts/renderers/sheet/sheet.tsx +440 -264
  459. package/src/artifacts/renderers/sheet/totals.ts +54 -0
  460. package/src/artifacts/renderers/sheet/view.ts +96 -0
  461. package/src/artifacts/renderers/sheet/workbook.ts +107 -8
  462. package/src/artifacts/renderers/sheet/xlsx.ts +516 -0
  463. package/src/artifacts/renderers/sheet/zip.ts +108 -0
  464. package/src/artifacts/renderers/slides/slides.tsx +3 -55
  465. package/src/artifacts/tones.ts +14 -0
  466. package/src/artifacts/viewer.tsx +915 -96
  467. package/src/auth.ts +8 -2
  468. package/src/codegen.ts +29 -12
  469. package/src/createCustomApp.ts +72 -24
  470. package/src/index.ts +76 -2
  471. package/src/locale-messages.ts +2 -0
  472. package/src/metadata.ts +16 -3
  473. package/src/pages/home.tsx +3 -1
  474. package/src/pages/observability/action-run.tsx +5 -1
  475. package/src/pages/observability/activity/messages.ts +16 -0
  476. package/src/pages/observability/activity/thread.tsx +150 -0
  477. package/src/pages/observability/activity/timeline.tsx +40 -3
  478. package/src/pages/observability/ai-usage/calls.tsx +63 -19
  479. package/src/pages/observability/ai-usage/format.ts +61 -8
  480. package/src/pages/observability/ai-usage/kinds.tsx +156 -0
  481. package/src/pages/observability/ai-usage/messages.ts +91 -14
  482. package/src/pages/observability/ai-usage/page.tsx +157 -48
  483. package/src/pages/observability/messages.ts +3 -0
  484. package/src/pages/ontology/actions.tsx +25 -4
  485. package/src/pages/ontology/components/action-button.tsx +53 -17
  486. package/src/pages/ontology/components/user-picker.tsx +161 -0
  487. package/src/pages/ontology/object-type.tsx +6 -0
  488. package/src/pages/ontology/workflows/run-input-form.tsx +12 -1
  489. package/src/pages/routes.ts +5 -0
  490. package/src/pages/section-page.tsx +27 -0
  491. package/src/pages/section-ui.tsx +3 -2
  492. package/src/pages/settings/controls.tsx +10 -2
  493. package/src/pages/settings/members.tsx +1 -5
  494. package/src/pages/settings/memory-contents.tsx +173 -0
  495. package/src/pages/settings/memory-entries.ts +112 -0
  496. package/src/pages/settings/memory-files.ts +195 -0
  497. package/src/pages/settings/memory-history.tsx +560 -0
  498. package/src/pages/settings/memory.tsx +993 -0
  499. package/src/pages/settings/messages.ts +231 -2
  500. package/src/pages/settings/personal.tsx +247 -27
  501. package/src/pages/settings/service-accounts.tsx +1 -1
  502. package/src/pages/settings/sessions.tsx +1 -4
  503. package/src/pages/values.tsx +88 -11
  504. package/src/pages.ts +21 -27
  505. package/src/sections/catalog.ts +18 -1
  506. package/src/sections/sections.tsx +2 -0
  507. package/src/shell/agent-dock.tsx +4 -2
  508. package/dist/chunk-c7gy61rx.js.map +0 -10
  509. package/dist/chunk-gn3k23q5.js.map +0 -10
  510. package/dist/chunk-ng0hdnrq.js.map +0 -10
  511. package/dist/chunk-xxpdn63v.js +0 -15018
  512. package/dist/chunk-xxpdn63v.js.map +0 -105
  513. package/src/agent/agents-page.ts +0 -7
  514. package/src/agent/components/agent-thread-switcher.tsx +0 -346
  515. /package/dist/{chunk-3schcf10.js.map → chunk-736c9akn.js.map} +0 -0
  516. /package/dist/{chunk-g3f4cm8x.js.map → chunk-k4epnkcr.js.map} +0 -0
@@ -0,0 +1,17 @@
1
+ import type { ArtifactMessages } from "../../messages";
2
+ import { type SheetModel } from "./model";
3
+ /**
4
+ * The properties that lock a column's values, by name in the sheet's order: the column itself when
5
+ * it shows one, else the locked ones its formula reads. With `row`, only what locks that row's cell:
6
+ * a value of the row, or of a column the formula reads whole.
7
+ */
8
+ export declare function lockedBy(model: SheetModel, column: number, row?: number): string[];
9
+ /** The properties that lock any of these columns, by name in the sheet's order. */
10
+ export declare function lockedByAny(model: SheetModel, columns: readonly string[]): string[];
11
+ /** The properties whose values the reader may not see somewhere in the sheet, never a computed column. */
12
+ export declare function hiddenProperties(model: SheetModel): string[];
13
+ /** Why a data row's locked cell is locked: the permission it lacks, or what it is computed from. */
14
+ export declare function lockedCellLabel(model: SheetModel, row: number, column: number, messages: ArtifactMessages["sheet"]): string;
15
+ /** Why a column's total is locked: a permission it lacks, or what the column is computed from. */
16
+ export declare function lockedTotalLabel(model: SheetModel, column: number, messages: ArtifactMessages["sheet"]): string;
17
+ //# sourceMappingURL=locked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locked.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/locked.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAA2B,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAiClE;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA0BlF;AAED,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAQnF;AAED,0GAA0G;AAC1G,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,CAI5D;AAED,oGAAoG;AACpG,wBAAgB,eAAe,CAC7B,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC,MAAM,CAMR;AAED,kGAAkG;AAClG,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC,MAAM,CAMR"}
@@ -1 +1 @@
1
- {"version":3,"file":"mini-chart.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/mini-chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAOzC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAC3B,sCA8BA"}
1
+ {"version":3,"file":"mini-chart.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/mini-chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAMzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAOzC,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAC3B,sCA8CA"}
@@ -1,4 +1,4 @@
1
- import { type CsvTable, type SheetColumnFormat, type WorkbookSheet } from "@sixb/core/artifacts";
1
+ import { type CsvTable, type SheetColumnFormat, type SheetTotal, type WorkbookSheet } from "@sixb/core/artifacts";
2
2
  /** One column as the grid draws it. */
3
3
  export interface SheetColumn {
4
4
  readonly name: string;
@@ -7,6 +7,10 @@ export interface SheetColumn {
7
7
  /** Digits after the decimal point: the format's, else as many as the column's values need. */
8
8
  readonly decimals: number;
9
9
  readonly width: number;
10
+ /** What the column means, from the workbook. */
11
+ readonly description?: string;
12
+ /** What the totals row shows under it. */
13
+ readonly total?: SheetTotal;
10
14
  }
11
15
  /** A sheet ready to draw: its columns, and its data rows each as wide as the columns. */
12
16
  export interface SheetModel {
@@ -16,10 +20,28 @@ export interface SheetModel {
16
20
  /** Grid rows that stay in view, the header row included. */
17
21
  readonly frozenRows: number;
18
22
  readonly frozenColumns: number;
23
+ /** Whether a totals row is pinned under the rows: some column has a total. */
24
+ readonly totals: boolean;
25
+ /**
26
+ * A live sheet's cells the reader may not see, by data row, then column: drawn locked, and a
27
+ * total over one is locked too. Their values are empty.
28
+ */
29
+ readonly locked?: ReadonlyMap<number, ReadonlySet<number>>;
30
+ /** A live sheet's rows are the first its query returns: the cap left the others out. */
31
+ readonly truncated?: boolean;
19
32
  }
20
- type SheetLayout = Pick<WorkbookSheet, "name" | "frozenRows" | "frozenColumns" | "columns" | "widths">;
21
- /** A sheet of a workbook, laid out as its workbook says. */
22
- export declare function sheetModel(sheet: SheetLayout, table: CsvTable): SheetModel;
33
+ /** What a live sheet's rows add to its model: the reader's locked cells, and whether rows were left out. */
34
+ export type LiveRows = Pick<SheetModel, "locked" | "truncated">;
35
+ /** Whether the reader may not see a data row's value in a column. */
36
+ export declare function isLocked(model: SheetModel, row: number, column: number): boolean;
37
+ /** The names of the columns that hold a value the reader may not see, in the sheet's order. */
38
+ export declare function lockedColumns(model: SheetModel): string[];
39
+ type SheetLayout = Pick<WorkbookSheet, "name" | "frozenRows" | "frozenColumns" | "columns" | "widths"> & Partial<Pick<WorkbookSheet, "descriptions" | "totals">>;
40
+ /**
41
+ * A sheet of a workbook, laid out as its workbook says, its computed columns filled. Publishing
42
+ * refused formulas that can't compute, so they all do here. A live sheet's rows bring `live`.
43
+ */
44
+ export declare function sheetModel(sheet: SheetLayout, source: CsvTable, live?: LiveRows): SheetModel;
23
45
  /**
24
46
  * A plain CSV file as a sheet: a column whose values are all numbers reads as numbers, any other
25
47
  * as text, and rows longer than the header add unnamed columns.
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EAGb,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAA;AAE7B,uCAAuC;AACvC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,8FAA8F;IAC9F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED,yFAAyF;AACzF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAA;IACxC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,CAAA;IAC7C,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;CAC/B;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,aAAa,EACb,MAAM,GAAG,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,CAC/D,CAAA;AAED,4DAA4D;AAC5D,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,GAAG,UAAU,CAY1E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EA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AED,4GAA4G;AAC5G,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAA;AAE/D,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAEhF;AAED,+FAA+F;AAC/F,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,CAMzD;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,aAAa,EACb,MAAM,GAAG,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,QAAQ,CAC/D,GACC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAA;AAEzD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAE,QAAa,GAAG,UAAU,CA8BhG;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,UAAU,CAmBxE"}
@@ -1,4 +1,5 @@
1
- import type { SheetModel } from "./model";
1
+ import type { FormattedCell } from "./format";
2
+ import { type SheetModel } from "./model";
2
3
  export interface CellPoint {
3
4
  readonly row: number;
4
5
  readonly column: number;
@@ -18,15 +19,32 @@ export declare function rangeLabel(range: CellRange): string;
18
19
  export interface RangeStats {
19
20
  /** Cells with a value. */
20
21
  readonly count: number;
21
- /** Cells of numeric columns that hold a number; the sum and average are theirs. */
22
+ /** Cells that hold a number; the sum and average are theirs. */
22
23
  readonly numericCount: number;
23
24
  readonly sum: number;
24
25
  readonly average?: number;
26
+ readonly min?: number;
27
+ readonly max?: number;
28
+ /**
29
+ * Cells the reader may not see, in a live sheet: the sum, average, min and max would leave them
30
+ * out, so the status bar shows them locked.
31
+ */
32
+ readonly locked?: number;
33
+ /** The properties that lock those cells, by name in the sheet's order. */
34
+ readonly lockedColumns?: readonly string[];
25
35
  }
26
- /** What a spreadsheet's status bar says about a selection. Header cells are labels, not values. */
27
- export declare function rangeStats(range: CellRange, model: SheetModel, order: readonly number[]): RangeStats;
28
- /** The selection as tab-separated values, the shape every spreadsheet pastes. */
29
- export declare function rangeTsv(range: CellRange, model: SheetModel, order: readonly number[]): string;
36
+ /**
37
+ * What a spreadsheet's status bar says about a selection. Header cells are labels, not values, and
38
+ * hidden columns are left out. A locked cell is counted apart: it is no value the figures read.
39
+ */
40
+ export declare function rangeStats(range: CellRange, model: SheetModel, order: readonly number[], hidden?: ReadonlySet<number>): RangeStats;
41
+ /** The selection as tab-separated values, the shape every spreadsheet pastes, hidden columns left out. */
42
+ export declare function rangeTsv(range: CellRange, model: SheetModel, order: readonly number[], hidden?: ReadonlySet<number>): string;
43
+ /**
44
+ * The selection as an HTML table of the values as the grid shows them, which a spreadsheet or a
45
+ * document pastes as rows and columns, formats and links kept. The header row is a row of `<th>`.
46
+ */
47
+ export declare function rangeHtml(range: CellRange, model: SheetModel, order: readonly number[], formatters: readonly ((value: string) => FormattedCell)[], hidden?: ReadonlySet<number>): string;
30
48
  export type MoveKey = "ArrowUp" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "Home" | "End";
31
49
  /** Where a key moves the focus cell; `jump` goes to the edge, as with Cmd or Ctrl held. */
32
50
  export declare function moveFocus(point: CellPoint, key: MoveKey, bounds: {
@@ -39,4 +57,10 @@ export declare function sortedOrder(model: SheetModel, sort: {
39
57
  readonly column: number;
40
58
  readonly direction: SortDirection;
41
59
  } | null, locale: string): number[];
60
+ /**
61
+ * Text from the clipboard as rows of cells, as a spreadsheet copies them: tabs between cells,
62
+ * line breaks between rows, and a cell holding either quoted, its quotes doubled. A last empty
63
+ * line is the copy's end, not a row.
64
+ */
65
+ export declare function parseTsv(text: string): string[][];
42
66
  //# sourceMappingURL=selection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"selection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,EAChB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,UAAU,EAAE,SAAS,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,aAAa,CAAC,EAAE,EACzD,MAAM,GAAE,WAAW,CAAC,MAAM,CAAe,GACxC,MAAM,CAqBR;AAYD,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,MAAM,GAAG,KAAK,CAAA;AAE3F,2FAA2F;AAC3F,wBAAgB,SAAS,CACvB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAC3D,IAAI,UAAQ,GACX,SAAS,CAiBX;AAED,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,YAAY,CAAA;AAEtD,6FAA6F;AAC7F,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAA;CAAE,GAAG,IAAI,EAC3E,MAAM,EAAE,MAAM,GACb,MAAM,EAAE,CAkBV;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CA8BjD"}
@@ -1,16 +1,16 @@
1
1
  import { type ArtifactVersion } from "../../queries";
2
2
  import type { SheetModel } from "./model";
3
3
  /**
4
- * A sheet artifact as a spreadsheet: a tab per sheet and per chart, a name box with the selection
5
- * and its column's type, the grid with the sheet's charts beside it, and a status bar that sums
6
- * what is selected. `part` opens a sheet by name (`Summary`, `Summary!A1:D5`) or a chart
7
- * (`chart=revenue`).
4
+ * A sheet artifact as a spreadsheet workbook: the formula bar with the name box and the active
5
+ * cell's value, the grid with the sheet's charts beside it, and the sheet bar with a tab per sheet
6
+ * and per chart and the status figures of the selection. `part` opens a sheet by name (`Summary`,
7
+ * `Summary!A1:D5`) or a chart (`chart=revenue`).
8
8
  */
9
9
  export declare function SheetRenderer({ version, part, }: {
10
10
  readonly version: ArtifactVersion;
11
11
  readonly part?: string;
12
12
  }): import("react").JSX.Element;
13
- /** One table on its own, as a CSV file shows: the name box, the grid, and the status bar. */
13
+ /** One table on its own, as a CSV file shows: the command bar, the grid, and the status bar. */
14
14
  export declare function SheetTable({ model }: {
15
15
  readonly model: SheetModel;
16
16
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/sheet.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,eAAe,CAAA;AAKxE,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,SAAS,CAAA;AAUtD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,+BAwBA;AA+KD,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,+BAWnE"}
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/sheet.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,eAAe,CAAA;AAoCxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAWzC;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,+BAwBA;AAmXD,gGAAgG;AAChG,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;CAAE,+BAoEnE"}
@@ -0,0 +1,16 @@
1
+ import { type SheetTotal } from "@sixb/core/artifacts";
2
+ import { type SheetModel } from "./model";
3
+ /** A column's total, or `locked` when a cell it would read is one the reader may not see. */
4
+ export interface ColumnTotal {
5
+ readonly total: SheetTotal;
6
+ readonly value: number | undefined;
7
+ readonly locked?: true;
8
+ }
9
+ /**
10
+ * What the totals row shows under each column that has a total, over the rows the reader sees:
11
+ * sorted or not, without the ones the filters hide. `count` counts values that are not empty; the
12
+ * others read only numbers, and are undefined for a column with none. Over a locked cell a total
13
+ * is locked: never what it comes to without it.
14
+ */
15
+ export declare function columnTotals(model: SheetModel, order: readonly number[]): ReadonlyMap<number, ColumnTotal>;
16
+ //# sourceMappingURL=totals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totals.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/totals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAEnD,6FAA6F;AAC7F,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAkClC"}
@@ -0,0 +1,44 @@
1
+ import { type ColumnFilter } from "./filter";
2
+ import type { SortDirection } from "./selection";
3
+ /**
4
+ * How the reader has arranged one sheet: its sort and filters, the columns they hid, how many
5
+ * columns they froze, and the widths they gave columns. It lasts while the artifact is open and
6
+ * changes nothing in it. Columns are the sheet's own, by index, so letters and addresses keep
7
+ * naming them.
8
+ */
9
+ export interface SheetView {
10
+ readonly sort: {
11
+ readonly column: number;
12
+ readonly direction: SortDirection;
13
+ } | null;
14
+ /**
15
+ * Whether every column's header shows its filter button, as a spreadsheet's filter mode does.
16
+ * Filters exist only while it is on.
17
+ */
18
+ readonly autoFilter: boolean;
19
+ /** Filters by column; a row shows when every one keeps it. */
20
+ readonly filters: Readonly<Record<number, ColumnFilter>>;
21
+ readonly hidden: readonly number[];
22
+ /** Columns kept in view as the sheet scrolls sideways; absent, the workbook's. */
23
+ readonly frozenColumns?: number;
24
+ /** Widths in pixels the reader gave columns; the others keep the workbook's or their fit. */
25
+ readonly widths: Readonly<Record<number, number>>;
26
+ }
27
+ export type SheetViewUpdate = (update: (view: SheetView) => SheetView) => void;
28
+ export declare const INITIAL_SHEET_VIEW: SheetView;
29
+ /** One view per sheet of a workbook, so each keeps its own as the reader moves between tabs. */
30
+ export declare function useSheetViews(): {
31
+ readonly viewOf: (sheet: string) => SheetView;
32
+ readonly updateOf: (sheet: string) => SheetViewUpdate;
33
+ };
34
+ /** Filter mode on or off; turning it off takes every filter off, as a spreadsheet does. */
35
+ export declare function setAutoFilter(view: SheetView, on: boolean): SheetView;
36
+ /** The view with a column's filter set, or taken off when it is null or would keep every row. */
37
+ export declare function setColumnFilter(view: SheetView, column: number, filter: ColumnFilter | null): SheetView;
38
+ export declare function hideColumn(view: SheetView, column: number): SheetView;
39
+ /**
40
+ * The nearest column the reader can see to the one a move reached, going on the way the move went
41
+ * and turning back at the sheet's edge; the column itself when it is not hidden.
42
+ */
43
+ export declare function visibleColumn(column: number, from: number, columnCount: number, hidden: ReadonlySet<number>): number;
44
+ //# sourceMappingURL=view.d.ts.map
@@ -0,0 +1 @@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ED,iGAAiG;AACjG,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,YAAY,GAAG,IAAI,GAC1B,SAAS,CAMX;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAGrE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAC1B,MAAM,CASR"}
@@ -1,6 +1,8 @@
1
- import { type Workbook, type WorkbookSheet } from "@sixb/core/artifacts";
1
+ import { type CsvTable, type Workbook, type WorkbookSheet } from "@sixb/core/artifacts";
2
+ import type { QueryClient } from "@tanstack/react-query";
2
3
  import type { FileSource } from "../../file-source";
3
- import { type ArtifactVersion } from "../../queries";
4
+ import type { ArtifactMessages } from "../../messages";
5
+ import { type ArtifactQueryError, type ArtifactVersion } from "../../queries";
4
6
  import { type SheetModel } from "./model";
5
7
  /**
6
8
  * A sheet artifact's `workbook.json`, parsed once it is read: undefined until then, and null when
@@ -13,12 +15,30 @@ export declare function useWorkbook(version: ArtifactVersion): {
13
15
  /**
14
16
  * One sheet of a workbook, read whole from its CSV and laid out as the workbook says. Publishing
15
17
  * caps a sheet's file at what the viewer reads; one over it is `tooLarge`, to download instead.
18
+ * A live sheet's rows are its query's, read as the signed-in reader: `error` says why there are
19
+ * none to show, rather than a sheet of no rows.
16
20
  */
17
21
  export declare function useSheetModel(version: ArtifactVersion, sheet: WorkbookSheet | undefined): {
18
22
  readonly model: SheetModel | null;
19
- /** The sheet's CSV, which downloads as it is. */
23
+ /** The sheet's values as its CSV holds them, computed columns empty: what an edit starts from. */
24
+ readonly table: CsvTable | null;
25
+ /** The sheet's CSV, which downloads as it is; none for a live sheet. */
20
26
  readonly source: FileSource | null;
21
27
  readonly loading: boolean;
22
28
  readonly tooLarge: boolean;
29
+ /** Why a live sheet's rows could not be read. */
30
+ readonly error: ArtifactQueryError | null;
23
31
  };
32
+ /** Why a live sheet shows no rows, in the viewer's words: never a sheet that reads as empty. */
33
+ export declare function liveSheetErrorText(error: ArtifactQueryError, messages: ArtifactMessages["sheet"]): {
34
+ readonly title: string;
35
+ readonly description?: string;
36
+ };
37
+ /**
38
+ * Every sheet of a workbook, read and laid out, in its order: for a download of the whole
39
+ * workbook. Sheets the reader opened come from the cache.
40
+ */
41
+ export declare function readWorkbookModels(client: QueryClient, version: ArtifactVersion, workbook: Workbook): Promise<SheetModel[]>;
42
+ /** One sheet, read and laid out, its computed columns filled; a live sheet's from its query. */
43
+ export declare function readSheetModel(client: QueryClient, version: ArtifactVersion, sheet: WorkbookSheet): Promise<SheetModel>;
24
44
  //# sourceMappingURL=workbook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workbook.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/workbook.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,QAAQ,EACb,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,KAAK,eAAe,EAAkC,MAAM,eAAe,CAAA;AACpF,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,SAAS,CAAA;AAErD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG;IACrD,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAA;IAC9C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B,CAQA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B;IACD,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IACjC,i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1B,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAA;CAC1C,CA4BA;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,kBAAkB,EACzB,QAAQ,EAAE,gBAAgB,CAAC,OAAO,CAAC,GAClC;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAY3D;AAiBD;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,UAAU,EAAE,CAAC,CAEvB;AAED,gGAAgG;AAChG,wBAAsB,cAAc,CAClC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,aAAa,GACnB,OAAO,CAAC,UAAU,CAAC,CAWrB"}
@@ -0,0 +1,18 @@
1
+ import { type FormulaNode } from "@sixb/core/artifacts";
2
+ import { type SheetModel } from "./model";
3
+ export declare const XLSX_MEDIA_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
4
+ /**
5
+ * A workbook as an `.xlsx` file: one worksheet per sheet, in order, with the header row bold, each
6
+ * column's values typed and in its format (grouped or compact numbers, the currency's sign, signs on
7
+ * signed columns, percents, dates), links that open, the frozen rows and columns, the column widths
8
+ * the grid shows, booleans as TRUE and FALSE, highlights as conditional formats, and the totals
9
+ * row as formulas.
10
+ */
11
+ export declare function workbookXlsx(sheets: readonly SheetModel[]): Promise<Uint8Array>;
12
+ /**
13
+ * A formula with its column references as A1 references in this row: `[@Revenue]` is `B5`, and a
14
+ * whole column `[Revenue]` is its data rows, `$B$2:$B$13`. Parentheses are written where Excel's
15
+ * precedence needs them.
16
+ */
17
+ export declare function formulaToA1(node: FormulaNode, letters: ReadonlyMap<string, string>, row: number, lastRow: number): string;
18
+ //# sourceMappingURL=xlsx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xlsx.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/xlsx.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAMjB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAA8B,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAKrE,eAAO,MAAM,eAAe,sEAAsE,CAAA;AAElG;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAgErF;AAmJD;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GACd,MAAM,CAoCR"}
@@ -0,0 +1,12 @@
1
+ /** One file of an archive, at its path inside it. */
2
+ export interface ZipEntry {
3
+ readonly path: string;
4
+ readonly data: Uint8Array;
5
+ }
6
+ /**
7
+ * A ZIP archive of the entries, each deflated where the browser can (`CompressionStream` with
8
+ * `deflate-raw`), else stored. Enough of the format for an `.xlsx`: no directories, comments,
9
+ * encryption, or ZIP64, so each entry and the whole stay under 4 GB.
10
+ */
11
+ export declare function zipFiles(entries: readonly ZipEntry[]): Promise<Uint8Array>;
12
+ //# sourceMappingURL=zip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/sheet/zip.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAC1B;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,SAAS,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAsDhF"}
@@ -1 +1 @@
1
- {"version":3,"file":"slides.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/slides/slides.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAMpD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,+BA4LA"}
1
+ {"version":3,"file":"slides.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/renderers/slides/slides.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAMpD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,+BA4LA"}
@@ -0,0 +1,4 @@
1
+ import type { ArtifactTone } from "@sixb/core/artifacts";
2
+ /** Each tone's color in the theme, for a sheet's tags and a canvas's notes and shapes. */
3
+ export declare const TONE_COLORS: Readonly<Record<ArtifactTone, string>>;
4
+ //# sourceMappingURL=tones.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tones.d.ts","sourceRoot":"","sources":["../../src/artifacts/tones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,0FAA0F;AAC1F,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAU9D,CAAA"}
@@ -6,6 +6,8 @@ export interface ViewerChrome {
6
6
  readonly onBack?: () => void;
7
7
  /** Where "open full page" goes, as a route in the app; omitted on the full page itself. */
8
8
  readonly fullPageHref?: string;
9
+ /** No link to the artifact's own page to copy: its reader cannot open it there. */
10
+ readonly withoutPageLink?: boolean;
9
11
  }
10
12
  /** An artifact or a file under its header. One viewer serves the panel, the dialog, and the page. */
11
13
  export declare function Viewer({ target, onTargetChange, onOpenReference, chrome, className, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"viewer.d.ts","sourceRoot":"","sources":["../../src/artifacts/viewer.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,KAAK,cAAc,EAAgB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AAE/E,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,2FAA2F;IAC3F,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B;AAED,qGAAqG;AACrG,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,cAAc,EACd,eAAgC,EAChC,MAAW,EACX,SAAS,GACV,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA;IACvD,sFAAsF;IACtF,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IAC3D,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,+BAgBA"}
1
+ {"version":3,"file":"viewer.d.ts","sourceRoot":"","sources":["../../src/artifacts/viewer.tsx"],"names":[],"mappings":"AA4EA,OAAO,EAAE,KAAK,cAAc,EAAgB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AAE/E,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,2FAA2F;IAC3F,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CACnC;AAED,qGAAqG;AACrG,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,cAAc,EACd,eAAgC,EAChC,MAAW,EACX,SAAS,GACV,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA;IACvD,sFAAsF;IACtF,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IAC3D,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,+BAsBA"}
package/dist/auth.d.ts CHANGED
@@ -5,6 +5,8 @@ export type AuthExperienceState = {
5
5
  } | {
6
6
  readonly kind: "confirm";
7
7
  readonly email?: string;
8
+ /** The link creates the person's account: ask for their name and pass it to `confirmSignIn`. */
9
+ readonly firstSignIn?: true;
8
10
  } | {
9
11
  readonly kind: "invalidLink";
10
12
  } | {
@@ -12,7 +14,10 @@ export type AuthExperienceState = {
12
14
  };
13
15
  export interface AuthExperienceActions {
14
16
  requestMagicLink(email: string): void;
15
- confirmSignIn(): void;
17
+ /** `displayName` names a new account; it is ignored when the person already has one. */
18
+ confirmSignIn(input?: {
19
+ readonly displayName?: string;
20
+ }): void;
16
21
  restartSignIn(): void;
17
22
  }
18
23
  export interface AuthExperienceProps {
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.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A;IACrC,wFAAwF;IACxF,aAAa,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC9D,aAAa,IAAI,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAA;IACnC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;CACxC"}
@@ -1,4 +1,48 @@
1
1
  // @bun
2
+ // src/agent/tool-views/define.ts
3
+ var AGENT_TOOL_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_-]{0,63}$/;
4
+ var PLACEMENTS = ["work", "answer"];
5
+ function defineAgentToolView2(name, options = {}) {
6
+ if (typeof name !== "string" || !AGENT_TOOL_NAME_PATTERN.test(name)) {
7
+ throw new Error(`[SixbApp] defineAgentToolView needs the name of a tool: 1-64 characters, starting with a letter or underscore, with only letters, numbers, underscores, or hyphens. Got ${JSON.stringify(name)}.`);
8
+ }
9
+ const placement = options.placement ?? "work";
10
+ if (!PLACEMENTS.includes(placement)) {
11
+ throw new Error(`[SixbApp] The view of tool '${name}' has placement ${JSON.stringify(placement)}. Use "work" or "answer".`);
12
+ }
13
+ return {
14
+ render(component) {
15
+ if (typeof component !== "function") {
16
+ throw new Error(`[SixbApp] The view of tool '${name}' needs a component: pass one to .render().`);
17
+ }
18
+ return Object.freeze({ kind: "agentToolView", toolName: name, placement, render: component });
19
+ }
20
+ };
21
+ }
22
+ function isAgentToolView(value) {
23
+ if (typeof value !== "object" || value === null)
24
+ return false;
25
+ return Reflect.get(value, "kind") === "agentToolView" && typeof Reflect.get(value, "toolName") === "string" && PLACEMENTS.includes(Reflect.get(value, "placement")) && typeof Reflect.get(value, "render") === "function";
26
+ }
27
+ function agentToolViews(views, fail = (detail) => new Error(`[SixbApp] Invalid toolViews in app/layout.tsx: ${detail}`)) {
28
+ if (views === undefined)
29
+ return new Map;
30
+ if (!Array.isArray(views)) {
31
+ throw fail("the named toolViews export must be an array of views from defineAgentToolView.");
32
+ }
33
+ const registry = new Map;
34
+ views.forEach((view, index) => {
35
+ if (!isAgentToolView(view)) {
36
+ throw fail(`toolViews[${index}] is not a view from defineAgentToolView.`);
37
+ }
38
+ if (registry.has(view.toolName)) {
39
+ throw fail(`two views for the tool '${view.toolName}'. Keep one view per tool.`);
40
+ }
41
+ registry.set(view.toolName, view);
42
+ });
43
+ return registry;
44
+ }
45
+
2
46
  // src/sections/catalog.ts
3
47
  var sectionCatalog = [
4
48
  {
@@ -59,7 +103,17 @@ var sectionCatalog = [
59
103
  },
60
104
  { id: "logs", path: "/observability/logs", exportName: "ObservabilityLogsPage" },
61
105
  { id: "ai-usage", path: "/observability/ai-usage", exportName: "ObservabilityAiUsagePage" },
62
- { id: "activity", path: "/observability/activity", exportName: "ObservabilityActivityPage" }
106
+ {
107
+ id: "activity",
108
+ path: "/observability/activity",
109
+ exportName: "ObservabilityActivityPage",
110
+ details: [
111
+ {
112
+ path: "/observability/activity/threads/:threadId",
113
+ exportName: "ObservabilityAgentThreadPage"
114
+ }
115
+ ]
116
+ }
63
117
  ]
64
118
  },
65
119
  {
@@ -127,6 +181,13 @@ var sectionCatalog = [
127
181
  group: "account",
128
182
  always: true
129
183
  },
184
+ {
185
+ id: "memory",
186
+ path: "/settings/memory",
187
+ exportName: "SettingsMemoryPage",
188
+ group: "account",
189
+ always: true
190
+ },
130
191
  {
131
192
  id: "members",
132
193
  path: "/settings/members",
@@ -144,6 +205,6 @@ var sectionCatalog = [
144
205
  ];
145
206
  var sectionIds = sectionCatalog.map((section) => section.id);
146
207
 
147
- export { sectionCatalog, sectionIds };
208
+ export { defineAgentToolView2, agentToolViews, sectionCatalog, sectionIds };
148
209
 
149
- //# debugId=3F912DE82FC7FCEA64756E2164756E21
210
+ //# debugId=8899848C0F3EF05764756E2164756E21
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/agent/tool-views/define.ts", "../src/sections/catalog.ts"],
4
+ "sourcesContent": [
5
+ "import type { AgentToolDefinition, InferAgentToolInput, InferAgentToolOutput } from \"@sixb/core\"\nimport type { ReactNode } from \"react\"\n\n/** Where a tool's view shows in the chat: in place of its row in the work, or in the answer. */\nexport type AgentToolViewPlacement = \"work\" | \"answer\"\n\n/**\n * What a tool's view receives, by the state of the call. A saved message holds only finished\n * calls; a live reply goes through every state.\n */\nexport type AgentToolViewProps<TTool extends AgentToolDefinition = AgentToolDefinition> =\n | {\n /** The model is still writing the input. */\n readonly state: \"input-streaming\"\n /** The input written so far: partial JSON text. */\n readonly inputText?: string\n readonly input?: undefined\n readonly output?: undefined\n readonly errorText?: undefined\n }\n | {\n /** The input is valid and the tool is running. */\n readonly state: \"input-available\"\n readonly inputText?: undefined\n readonly input: InferAgentToolInput<TTool>\n readonly output?: undefined\n readonly errorText?: undefined\n }\n | {\n readonly state: \"output-available\"\n readonly inputText?: undefined\n readonly input: InferAgentToolInput<TTool>\n readonly output: InferAgentToolOutput<TTool>\n readonly errorText?: undefined\n }\n | {\n readonly state: \"output-error\"\n readonly inputText?: undefined\n /**\n * What the model sent, when the call got that far. Not typed as the tool's input: a call\n * refused for its input carries the input it was refused for, which may not match the schema.\n */\n readonly input?: unknown\n readonly output?: undefined\n readonly errorText: string\n }\n\n// Views are stored together whatever their tool. Keep variance erasure at this boundary, so a\n// list of views for different tools is a `readonly AgentToolView[]`.\ntype StoredAgentToolViewRender<TTool extends AgentToolDefinition> = {\n bivarianceHack(props: AgentToolViewProps<TTool>): ReactNode\n}[\"bivarianceHack\"]\n\n/** How the chat shows one tool's calls. Register it in the `toolViews` export of `app/layout.tsx`. */\nexport interface AgentToolView<TTool extends AgentToolDefinition = AgentToolDefinition> {\n readonly kind: \"agentToolView\"\n readonly toolName: TTool[\"name\"]\n readonly placement: AgentToolViewPlacement\n readonly render: StoredAgentToolViewRender<TTool>\n}\n\nconst AGENT_TOOL_NAME_PATTERN = /^[A-Za-z_][A-Za-z0-9_-]{0,63}$/\nconst PLACEMENTS: readonly AgentToolViewPlacement[] = [\"work\", \"answer\"]\n\n/**\n * Define how the chat shows a tool's calls. Type it with the tool's definition, imported as a type\n * so nothing from the server reaches the browser:\n *\n * ```tsx\n * import type { quoteShipping } from \"../../agent-tools/quote-shipping\"\n *\n * export const quoteView = defineAgentToolView<typeof quoteShipping>(\"quote_shipping\", {\n * placement: \"answer\",\n * }).render(({ state, output }) => (state === \"output-available\" ? <Quote {...output} /> : null))\n * ```\n *\n * The component renders as a React component, so it can use hooks. A view that throws falls back\n * to the tool's built-in row.\n */\nexport function defineAgentToolView<TTool extends AgentToolDefinition>(\n name: TTool[\"name\"],\n options: { readonly placement?: AgentToolViewPlacement } = {}\n): {\n render(component: (props: AgentToolViewProps<TTool>) => ReactNode): AgentToolView<TTool>\n} {\n if (typeof name !== \"string\" || !AGENT_TOOL_NAME_PATTERN.test(name)) {\n throw new Error(\n `[SixbApp] defineAgentToolView needs the name of a tool: 1-64 characters, starting with a letter or underscore, with only letters, numbers, underscores, or hyphens. Got ${JSON.stringify(name)}.`\n )\n }\n\n const placement = options.placement ?? \"work\"\n if (!PLACEMENTS.includes(placement)) {\n throw new Error(\n `[SixbApp] The view of tool '${name}' has placement ${JSON.stringify(placement)}. Use \"work\" or \"answer\".`\n )\n }\n\n return {\n render(component) {\n if (typeof component !== \"function\") {\n throw new Error(\n `[SixbApp] The view of tool '${name}' needs a component: pass one to .render().`\n )\n }\n\n return Object.freeze({ kind: \"agentToolView\", toolName: name, placement, render: component })\n },\n }\n}\n\nexport function isAgentToolView(value: unknown): value is AgentToolView {\n if (typeof value !== \"object\" || value === null) return false\n\n return (\n Reflect.get(value, \"kind\") === \"agentToolView\" &&\n typeof Reflect.get(value, \"toolName\") === \"string\" &&\n (PLACEMENTS as readonly unknown[]).includes(Reflect.get(value, \"placement\")) &&\n typeof Reflect.get(value, \"render\") === \"function\"\n )\n}\n\n/**\n * The views of a layout's `toolViews` export by tool name. Both the build, when it loads the\n * layout, and the provider in the browser read the export through this, so a mistake is reported\n * the same way: `fail` turns what is wrong into the error to throw.\n */\nexport function agentToolViews(\n views: unknown,\n fail: (detail: string) => Error = (detail) =>\n new Error(`[SixbApp] Invalid toolViews in app/layout.tsx: ${detail}`)\n): ReadonlyMap<string, AgentToolView> {\n if (views === undefined) return new Map()\n if (!Array.isArray(views)) {\n throw fail(\"the named toolViews export must be an array of views from defineAgentToolView.\")\n }\n\n const registry = new Map<string, AgentToolView>()\n views.forEach((view: unknown, index) => {\n if (!isAgentToolView(view)) {\n throw fail(`toolViews[${index}] is not a view from defineAgentToolView.`)\n }\n if (registry.has(view.toolName)) {\n throw fail(`two views for the tool '${view.toolName}'. Keep one view per tool.`)\n }\n registry.set(view.toolName, view)\n })\n\n return registry\n}\n",
6
+ "/**\n * The sections Sixb builds into every app, as plain data: the build reads it to add their routes,\n * and the browser reads it to draw their navigation. No React here, so the CLI can import it.\n *\n * A section is a group of pages at one path prefix. Its visibility key, set in the project's\n * `visibility` export, decides who sees its pages; pages marked `always` stay open to every\n * signed-in person, because they are about that person rather than the project.\n */\n\nexport type AppSectionId = \"data\" | \"observability\" | \"ontology\" | \"settings\"\n\nexport interface SectionPageDefinition {\n readonly id: string\n readonly path: string\n /** The page's export from `@sixb/app/pages`. */\n readonly exportName: string\n /** Pages sharing a group sit under one heading in the section's navigation. */\n readonly group?: string\n readonly always?: boolean\n /** Pages for one item below this one, such as a single sync under Syncs. */\n readonly details?: readonly { readonly path: string; readonly exportName: string }[]\n /** Paths outside the section that open from this page and keep the section around them. */\n readonly activeFor?: readonly string[]\n}\n\nexport interface SectionDefinition {\n readonly id: AppSectionId\n readonly path: string\n /** The export that answers the section's own path by opening its first page. */\n readonly indexExportName: string\n /** Every page needs a signed-in person, so the section is absent when auth is off. */\n readonly requiresUser: boolean\n readonly pages: readonly SectionPageDefinition[]\n}\n\nexport const sectionCatalog: readonly SectionDefinition[] = [\n // In this order in the user menu, Settings last.\n {\n id: \"data\",\n path: \"/data\",\n indexExportName: \"DataIndexPage\",\n requiresUser: false,\n pages: [\n {\n id: \"connectors\",\n path: \"/data/connectors\",\n exportName: \"DataConnectorsPage\",\n details: [{ path: \"/data/connectors/:connectorId\", exportName: \"DataConnectorPage\" }],\n },\n {\n id: \"syncs\",\n path: \"/data/syncs\",\n exportName: \"DataSyncsPage\",\n details: [{ path: \"/data/syncs/:syncId\", exportName: \"DataSyncPage\" }],\n },\n {\n id: \"datasets\",\n path: \"/data/datasets\",\n exportName: \"DataDatasetsPage\",\n details: [{ path: \"/data/datasets/:datasetId\", exportName: \"DataDatasetPage\" }],\n },\n {\n id: \"pipelines\",\n path: \"/data/pipelines\",\n exportName: \"DataPipelinesPage\",\n details: [{ path: \"/data/pipelines/:pipelineId\", exportName: \"DataPipelinePage\" }],\n },\n {\n id: \"projections\",\n path: \"/data/projections\",\n exportName: \"DataProjectionsPage\",\n details: [{ path: \"/data/projections/:projectionId\", exportName: \"DataProjectionPage\" }],\n },\n ],\n },\n {\n id: \"observability\",\n path: \"/observability\",\n indexExportName: \"ObservabilityIndexPage\",\n requiresUser: false,\n pages: [\n {\n id: \"runs\",\n path: \"/observability/runs\",\n exportName: \"ObservabilityRunsPage\",\n details: [\n {\n path: \"/observability/runs/workflows/:runId\",\n exportName: \"ObservabilityWorkflowRunPage\",\n },\n { path: \"/observability/runs/actions/:runId\", exportName: \"ObservabilityActionRunPage\" },\n ],\n },\n { id: \"logs\", path: \"/observability/logs\", exportName: \"ObservabilityLogsPage\" },\n { id: \"ai-usage\", path: \"/observability/ai-usage\", exportName: \"ObservabilityAiUsagePage\" },\n {\n id: \"activity\",\n path: \"/observability/activity\",\n exportName: \"ObservabilityActivityPage\",\n details: [\n {\n path: \"/observability/activity/threads/:threadId\",\n exportName: \"ObservabilityAgentThreadPage\",\n },\n ],\n },\n ],\n },\n {\n id: \"ontology\",\n path: \"/ontology\",\n indexExportName: \"OntologyIndexPage\",\n requiresUser: false,\n pages: [\n {\n id: \"object-types\",\n path: \"/ontology/object-types\",\n exportName: \"OntologyObjectTypesPage\",\n group: \"model\",\n details: [\n { path: \"/ontology/object-types/:objectTypeId\", exportName: \"OntologyObjectTypePage\" },\n ],\n },\n {\n id: \"objects\",\n path: \"/ontology/objects\",\n exportName: \"OntologyObjectsPage\",\n group: \"model\",\n // An object's page lives outside the section, so people who cannot open it still can.\n activeFor: [\"/objects\"],\n },\n { id: \"graph\", path: \"/ontology/graph\", exportName: \"OntologyGraphPage\", group: \"model\" },\n {\n id: \"actions\",\n path: \"/ontology/actions\",\n exportName: \"OntologyActionsPage\",\n group: \"logic\",\n },\n {\n id: \"workflows\",\n path: \"/ontology/workflows\",\n exportName: \"OntologyWorkflowsPage\",\n group: \"logic\",\n details: [{ path: \"/ontology/workflows/:workflowId\", exportName: \"OntologyWorkflowPage\" }],\n },\n {\n id: \"rules\",\n path: \"/ontology/rules\",\n exportName: \"OntologyRulesPage\",\n group: \"logic\",\n details: [{ path: \"/ontology/rules/:ruleId\", exportName: \"OntologyRulePage\" }],\n },\n ],\n },\n {\n id: \"settings\",\n path: \"/settings\",\n indexExportName: \"SettingsIndexPage\",\n requiresUser: true,\n // Pages appear in this order; consecutive pages of one group share its heading.\n pages: [\n {\n id: \"personal\",\n path: \"/settings/personal\",\n exportName: \"SettingsPersonalPage\",\n group: \"account\",\n always: true,\n },\n {\n id: \"developers\",\n path: \"/settings/developers\",\n exportName: \"SettingsDevelopersPage\",\n group: \"account\",\n always: true,\n },\n {\n id: \"memory\",\n path: \"/settings/memory\",\n exportName: \"SettingsMemoryPage\",\n group: \"account\",\n always: true,\n },\n {\n id: \"members\",\n path: \"/settings/members\",\n exportName: \"SettingsMembersPage\",\n group: \"project\",\n },\n {\n id: \"service-accounts\",\n path: \"/settings/service-accounts\",\n exportName: \"SettingsServiceAccountsPage\",\n group: \"project\",\n },\n ],\n },\n]\n\nexport const sectionIds: readonly AppSectionId[] = sectionCatalog.map((section) => section.id)\n"
7
+ ],
8
+ "mappings": ";;AA6DA,IAAM,0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;AAAA,QACE,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,SAAS,CAAC,EAAE,MAAM,2BAA2B,YAAY,mBAAmB,CAAC;AAAA,MAC/E;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,iBAAiB;AAAA,IACjB,cAAc;AAAA,IAEd,OAAO;AAAA,MACL;AAAA,QACE,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,OAAO;AAAA,MACT;AAAA,MACA;AAAA,QACE,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,aAAsC,eAAe,IAAI,CAAC,YAAY,QAAQ,EAAE;",
9
+ "debugId": "8899848C0F3EF05764756E2164756E21",
10
+ "names": []
11
+ }
@@ -3,7 +3,7 @@ import {
3
3
  useRunStatusLabels,
4
4
  humanize,
5
5
  useDataMessages
6
- } from "./chunk-xxpdn63v.js";
6
+ } from "./chunk-twjs2sb9.js";
7
7
 
8
8
  // src/pages/data/pipeline-canvas.tsx
9
9
  import { cn } from "@sixb/ui/lib/utils";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  en,
4
4
  fr
5
- } from "./chunk-ng0hdnrq.js";
5
+ } from "./chunk-sw3pyqgy.js";
6
6
 
7
7
  // src/locale.ts
8
8
  import { defineMessages, LocaleProvider as LocaleProvider2, negotiateLocale } from "@sixb/ui/lib/i18n";