@sixb/app 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/dist/agent/agent-chat.d.ts +9 -2
  2. package/dist/agent/agent-chat.d.ts.map +1 -1
  3. package/dist/agent/agent-panel.d.ts +9 -1
  4. package/dist/agent/agent-panel.d.ts.map +1 -1
  5. package/dist/agent/agent-surface.d.ts.map +1 -1
  6. package/dist/agent/artifact-card.d.ts +3 -1
  7. package/dist/agent/artifact-card.d.ts.map +1 -1
  8. package/dist/agent/artifact-panel.d.ts +7 -1
  9. package/dist/agent/artifact-panel.d.ts.map +1 -1
  10. package/dist/agent/components/composer-place.d.ts +3 -1
  11. package/dist/agent/components/composer-place.d.ts.map +1 -1
  12. package/dist/agent/components/composer.d.ts +20 -1
  13. package/dist/agent/components/composer.d.ts.map +1 -1
  14. package/dist/agent/components/context-chips.d.ts.map +1 -1
  15. package/dist/agent/components/context-meter.d.ts +1 -1
  16. package/dist/agent/components/conversation-panel.d.ts +3 -1
  17. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  18. package/dist/agent/components/message-parts.d.ts +3 -1
  19. package/dist/agent/components/message-parts.d.ts.map +1 -1
  20. package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -1
  21. package/dist/agent/composer-insertion.d.ts +24 -0
  22. package/dist/agent/composer-insertion.d.ts.map +1 -0
  23. package/dist/agent/delegation/use-children.d.ts +5 -5
  24. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  25. package/dist/agent/hooks/use-agent-conversation.d.ts +10 -4
  26. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  27. package/dist/agent/hooks/use-new-thread-place.d.ts +39 -17
  28. package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -1
  29. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  30. package/dist/agent/i18n/en.d.ts +14 -0
  31. package/dist/agent/i18n/en.d.ts.map +1 -1
  32. package/dist/agent/i18n/fr.d.ts.map +1 -1
  33. package/dist/agent/i18n/index.d.ts +20 -0
  34. package/dist/agent/i18n/index.d.ts.map +1 -1
  35. package/dist/agent/publish-artifact/interpret.d.ts +8 -2
  36. package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
  37. package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts +9 -0
  38. package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts.map +1 -0
  39. package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +4 -2
  40. package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -1
  41. package/dist/agent/publish-artifact/use-live-publishes.d.ts +3 -3
  42. package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -1
  43. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  44. package/dist/agent/types.d.ts +3 -1
  45. package/dist/agent/types.d.ts.map +1 -1
  46. package/dist/artifacts/artifact-page.d.ts.map +1 -1
  47. package/dist/artifacts/artifact-viewer.d.ts +16 -0
  48. package/dist/artifacts/artifact-viewer.d.ts.map +1 -0
  49. package/dist/artifacts/card-details.d.ts +1 -1
  50. package/dist/artifacts/card-details.d.ts.map +1 -1
  51. package/dist/artifacts/card-preview.d.ts.map +1 -1
  52. package/dist/artifacts/comments-context.d.ts +48 -0
  53. package/dist/artifacts/comments-context.d.ts.map +1 -0
  54. package/dist/artifacts/edit-session.d.ts +6 -6
  55. package/dist/artifacts/edit-session.d.ts.map +1 -1
  56. package/dist/artifacts/file-source.d.ts.map +1 -1
  57. package/dist/artifacts/frame.d.ts +10 -2
  58. package/dist/artifacts/frame.d.ts.map +1 -1
  59. package/dist/artifacts/guest-badge.d.ts +8 -0
  60. package/dist/artifacts/guest-badge.d.ts.map +1 -0
  61. package/dist/artifacts/held-artifact.d.ts +19 -0
  62. package/dist/artifacts/held-artifact.d.ts.map +1 -0
  63. package/dist/artifacts/holders.d.ts +10 -0
  64. package/dist/artifacts/holders.d.ts.map +1 -0
  65. package/dist/artifacts/live/boards.d.ts +15 -0
  66. package/dist/artifacts/live/boards.d.ts.map +1 -0
  67. package/dist/artifacts/live/canvas.d.ts +79 -0
  68. package/dist/artifacts/live/canvas.d.ts.map +1 -0
  69. package/dist/artifacts/live/header.d.ts +29 -0
  70. package/dist/artifacts/live/header.d.ts.map +1 -0
  71. package/dist/artifacts/live/hooks.d.ts +21 -0
  72. package/dist/artifacts/live/hooks.d.ts.map +1 -0
  73. package/dist/artifacts/live/presence.d.ts +32 -0
  74. package/dist/artifacts/live/presence.d.ts.map +1 -0
  75. package/dist/artifacts/live/session.d.ts +130 -0
  76. package/dist/artifacts/live/session.d.ts.map +1 -0
  77. package/dist/artifacts/live/view.d.ts +28 -0
  78. package/dist/artifacts/live/view.d.ts.map +1 -0
  79. package/dist/artifacts/messages.d.ts +424 -14
  80. package/dist/artifacts/messages.d.ts.map +1 -1
  81. package/dist/artifacts/page-queries.d.ts +2 -2
  82. package/dist/artifacts/page-queries.d.ts.map +1 -1
  83. package/dist/artifacts/page-state.d.ts.map +1 -1
  84. package/dist/artifacts/publish-edit.d.ts +24 -14
  85. package/dist/artifacts/publish-edit.d.ts.map +1 -1
  86. package/dist/artifacts/queries.d.ts +490 -9
  87. package/dist/artifacts/queries.d.ts.map +1 -1
  88. package/dist/artifacts/references/references.d.ts.map +1 -1
  89. package/dist/artifacts/renderers/canvas/arrows.d.ts +0 -18
  90. package/dist/artifacts/renderers/canvas/arrows.d.ts.map +1 -1
  91. package/dist/artifacts/renderers/canvas/board-editor.d.ts +43 -0
  92. package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -0
  93. package/dist/artifacts/renderers/canvas/board-properties.d.ts +37 -0
  94. package/dist/artifacts/renderers/canvas/board-properties.d.ts.map +1 -0
  95. package/dist/artifacts/renderers/canvas/board-source.d.ts +18 -0
  96. package/dist/artifacts/renderers/canvas/board-source.d.ts.map +1 -0
  97. package/dist/artifacts/renderers/canvas/board.d.ts +64 -19
  98. package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
  99. package/dist/artifacts/renderers/canvas/canvas.d.ts +13 -4
  100. package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
  101. package/dist/artifacts/renderers/canvas/comment-pins.d.ts +84 -0
  102. package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -0
  103. package/dist/artifacts/renderers/canvas/commenting.d.ts +58 -0
  104. package/dist/artifacts/renderers/canvas/commenting.d.ts.map +1 -0
  105. package/dist/artifacts/renderers/canvas/comments-panel.d.ts +27 -0
  106. package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -0
  107. package/dist/artifacts/renderers/canvas/comments.d.ts +56 -0
  108. package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -0
  109. package/dist/artifacts/renderers/canvas/draft.d.ts +7 -6
  110. package/dist/artifacts/renderers/canvas/draft.d.ts.map +1 -1
  111. package/dist/artifacts/renderers/canvas/edit-mode.d.ts +19 -2
  112. package/dist/artifacts/renderers/canvas/edit-mode.d.ts.map +1 -1
  113. package/dist/artifacts/renderers/canvas/focus.d.ts +40 -5
  114. package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
  115. package/dist/artifacts/renderers/canvas/items.d.ts +47 -4
  116. package/dist/artifacts/renderers/canvas/items.d.ts.map +1 -1
  117. package/dist/artifacts/renderers/canvas/layout.d.ts +5 -8
  118. package/dist/artifacts/renderers/canvas/layout.d.ts.map +1 -1
  119. package/dist/artifacts/renderers/canvas/presence.d.ts +21 -0
  120. package/dist/artifacts/renderers/canvas/presence.d.ts.map +1 -0
  121. package/dist/artifacts/renderers/canvas/previews.d.ts +54 -0
  122. package/dist/artifacts/renderers/canvas/previews.d.ts.map +1 -0
  123. package/dist/artifacts/renderers/canvas/renderer.d.ts +11 -2
  124. package/dist/artifacts/renderers/canvas/renderer.d.ts.map +1 -1
  125. package/dist/artifacts/renderers/canvas/thumbnail.d.ts +5 -2
  126. package/dist/artifacts/renderers/canvas/thumbnail.d.ts.map +1 -1
  127. package/dist/artifacts/version-menu.d.ts +19 -0
  128. package/dist/artifacts/version-menu.d.ts.map +1 -0
  129. package/dist/artifacts/view-context.d.ts +43 -0
  130. package/dist/artifacts/view-context.d.ts.map +1 -0
  131. package/dist/artifacts/viewer.d.ts.map +1 -1
  132. package/dist/build.d.ts +5 -0
  133. package/dist/build.d.ts.map +1 -1
  134. package/dist/{chunk-ytadd0b5.js → chunk-001c4gnk.js} +6871 -3756
  135. package/dist/chunk-001c4gnk.js.map +204 -0
  136. package/dist/chunk-00wggsst.js +7 -0
  137. package/dist/chunk-00wggsst.js.map +10 -0
  138. package/dist/chunk-5crvhjp2.js +4704 -0
  139. package/dist/chunk-5crvhjp2.js.map +28 -0
  140. package/dist/{chunk-q69001w3.js → chunk-694m74s7.js} +7 -1
  141. package/dist/{chunk-q69001w3.js.map → chunk-694m74s7.js.map} +3 -3
  142. package/dist/{chunk-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
  143. package/dist/chunk-fg6thecb.js.map +10 -0
  144. package/dist/{chunk-j8g956dt.js → chunk-fwb9mxwm.js} +1 -1
  145. package/dist/{chunk-7fj9cfkw.js → chunk-kes4ygmz.js} +1 -1
  146. package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
  147. package/dist/codegen.d.ts.map +1 -1
  148. package/dist/createCustomApp.d.ts.map +1 -1
  149. package/dist/index.d.ts +7 -1
  150. package/dist/index.d.ts.map +1 -1
  151. package/dist/index.js +930 -309
  152. package/dist/index.js.map +15 -10
  153. package/dist/locale-messages.d.ts +12 -0
  154. package/dist/locale-messages.d.ts.map +1 -1
  155. package/dist/locale.d.ts +12 -0
  156. package/dist/locale.d.ts.map +1 -1
  157. package/dist/locale.js +1 -1
  158. package/dist/metadata.d.ts +8 -0
  159. package/dist/metadata.d.ts.map +1 -1
  160. package/dist/pages/console/action-run.d.ts.map +1 -1
  161. package/dist/pages/console/data/connectors.d.ts.map +1 -1
  162. package/dist/pages/console/data/datasets.d.ts.map +1 -1
  163. package/dist/pages/console/data/lake-health.d.ts +3 -0
  164. package/dist/pages/console/data/lake-health.d.ts.map +1 -0
  165. package/dist/pages/console/data/messages.d.ts +98 -2
  166. package/dist/pages/console/data/messages.d.ts.map +1 -1
  167. package/dist/pages/console/data/pipelines.d.ts.map +1 -1
  168. package/dist/pages/console/data/projections.d.ts.map +1 -1
  169. package/dist/pages/console/data/syncs.d.ts.map +1 -1
  170. package/dist/pages/console/ontology/action-runs.d.ts.map +1 -1
  171. package/dist/pages/console/ontology/actions.d.ts.map +1 -1
  172. package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -1
  173. package/dist/pages/console/ontology/components/artifact-picker.d.ts +36 -0
  174. package/dist/pages/console/ontology/components/artifact-picker.d.ts.map +1 -0
  175. package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -1
  176. package/dist/pages/console/ontology/lib/action-params.d.ts +2 -0
  177. package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -1
  178. package/dist/pages/console/ontology/lineage/properties-panel.d.ts +2 -1
  179. package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -1
  180. package/dist/pages/console/ontology/object-page.d.ts.map +1 -1
  181. package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
  182. package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
  183. package/dist/pages/console/ontology/objects.d.ts.map +1 -1
  184. package/dist/pages/console/ontology/rules.d.ts.map +1 -1
  185. package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
  186. package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -1
  187. package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -1
  188. package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
  189. package/dist/pages/console/skeletons.d.ts +30 -0
  190. package/dist/pages/console/skeletons.d.ts.map +1 -0
  191. package/dist/pages/console/workflow-run.d.ts.map +1 -1
  192. package/dist/pages/section-page.d.ts +11 -1
  193. package/dist/pages/section-page.d.ts.map +1 -1
  194. package/dist/pages/section-ui.d.ts +25 -3
  195. package/dist/pages/section-ui.d.ts.map +1 -1
  196. package/dist/pages/settings/activity/calendar.d.ts.map +1 -1
  197. package/dist/pages/settings/activity/connections.d.ts.map +1 -1
  198. package/dist/pages/settings/activity/page.d.ts.map +1 -1
  199. package/dist/pages/settings/activity/thread.d.ts.map +1 -1
  200. package/dist/pages/settings/activity/timeline.d.ts +2 -0
  201. package/dist/pages/settings/activity/timeline.d.ts.map +1 -1
  202. package/dist/pages/settings/controls.d.ts +4 -0
  203. package/dist/pages/settings/controls.d.ts.map +1 -1
  204. package/dist/pages/settings/members.d.ts.map +1 -1
  205. package/dist/pages/settings/memory-history.d.ts +2 -0
  206. package/dist/pages/settings/memory-history.d.ts.map +1 -1
  207. package/dist/pages/settings/memory.d.ts.map +1 -1
  208. package/dist/pages/settings/service-accounts.d.ts.map +1 -1
  209. package/dist/pages/settings/sessions.d.ts.map +1 -1
  210. package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
  211. package/dist/pages/settings/usage/limits.d.ts.map +1 -1
  212. package/dist/pages/settings/usage/messages.d.ts +0 -2
  213. package/dist/pages/settings/usage/messages.d.ts.map +1 -1
  214. package/dist/pages/settings/usage/runs.d.ts +8 -2
  215. package/dist/pages/settings/usage/runs.d.ts.map +1 -1
  216. package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -1
  217. package/dist/pages/settings/usage/spend-model.d.ts +5 -0
  218. package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
  219. package/dist/pages/values.d.ts +6 -0
  220. package/dist/pages/values.d.ts.map +1 -1
  221. package/dist/pages.d.ts +4 -0
  222. package/dist/pages.d.ts.map +1 -1
  223. package/dist/pages.js +8188 -4841
  224. package/dist/pages.js.map +56 -47
  225. package/dist/sections/catalog.d.ts.map +1 -1
  226. package/dist/sections/sections.d.ts.map +1 -1
  227. package/dist/server.js +294 -23
  228. package/dist/server.js.map +8 -7
  229. package/dist/service-worker.d.ts +39 -0
  230. package/dist/service-worker.d.ts.map +1 -0
  231. package/dist/shared-session.d.ts +25 -0
  232. package/dist/shared-session.d.ts.map +1 -0
  233. package/dist/shell/app-return.d.ts +35 -0
  234. package/dist/shell/app-return.d.ts.map +1 -0
  235. package/dist/shell/app-shell.d.ts +1 -1
  236. package/dist/shell/app-shell.d.ts.map +1 -1
  237. package/dist/shell/nav-items.d.ts +2 -0
  238. package/dist/shell/nav-items.d.ts.map +1 -1
  239. package/dist/shell/phone/back.d.ts +6 -0
  240. package/dist/shell/phone/back.d.ts.map +1 -0
  241. package/dist/shell/phone/launch.d.ts +7 -0
  242. package/dist/shell/phone/launch.d.ts.map +1 -0
  243. package/dist/shell/phone/more-sheet.d.ts +36 -0
  244. package/dist/shell/phone/more-sheet.d.ts.map +1 -0
  245. package/dist/shell/phone/phone-foundations.d.ts +9 -0
  246. package/dist/shell/phone/phone-foundations.d.ts.map +1 -0
  247. package/dist/shell/phone/pull-to-refresh.d.ts +9 -0
  248. package/dist/shell/phone/pull-to-refresh.d.ts.map +1 -0
  249. package/dist/shell/phone/routes.d.ts +12 -0
  250. package/dist/shell/phone/routes.d.ts.map +1 -0
  251. package/dist/shell/phone/screen-motion.d.ts +11 -0
  252. package/dist/shell/phone/screen-motion.d.ts.map +1 -0
  253. package/dist/shell/phone/scroll-restoration.d.ts +7 -0
  254. package/dist/shell/phone/scroll-restoration.d.ts.map +1 -0
  255. package/dist/shell/phone/startup-image.d.ts +17 -0
  256. package/dist/shell/phone/startup-image.d.ts.map +1 -0
  257. package/dist/shell/phone/tab-bar.d.ts +14 -0
  258. package/dist/shell/phone/tab-bar.d.ts.map +1 -0
  259. package/dist/shell/phone/top-bar.d.ts +24 -0
  260. package/dist/shell/phone/top-bar.d.ts.map +1 -0
  261. package/dist/shell/search-command.d.ts +3 -1
  262. package/dist/shell/search-command.d.ts.map +1 -1
  263. package/dist/shell/user-menu.d.ts +2 -0
  264. package/dist/shell/user-menu.d.ts.map +1 -1
  265. package/package.json +8 -5
  266. package/src/agent/agent-chat.tsx +51 -8
  267. package/src/agent/agent-panel.tsx +12 -0
  268. package/src/agent/agent-surface.tsx +4 -0
  269. package/src/agent/artifact-card.tsx +84 -16
  270. package/src/agent/artifact-panel.tsx +63 -43
  271. package/src/agent/components/agent-message-body.tsx +1 -1
  272. package/src/agent/components/composer-place.tsx +77 -53
  273. package/src/agent/components/composer.tsx +92 -7
  274. package/src/agent/components/context-chips.tsx +72 -2
  275. package/src/agent/components/conversation-panel.tsx +3 -2
  276. package/src/agent/components/message-parts.tsx +6 -1
  277. package/src/agent/components/thread-artifacts-menu.tsx +22 -5
  278. package/src/agent/composer-insertion.ts +36 -0
  279. package/src/agent/hooks/use-agent-conversation.ts +41 -10
  280. package/src/agent/hooks/use-new-thread-place.ts +149 -25
  281. package/src/agent/i18n/en.ts +14 -0
  282. package/src/agent/i18n/fr.ts +12 -0
  283. package/src/agent/publish-artifact/interpret.ts +27 -5
  284. package/src/agent/publish-artifact/open-artifact-tool-view.tsx +49 -0
  285. package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +14 -8
  286. package/src/agent/publish-artifact/use-live-publishes.ts +7 -11
  287. package/src/agent/react-router.tsx +2 -2
  288. package/src/agent/tool-views/built-in.tsx +3 -0
  289. package/src/agent/types.ts +4 -0
  290. package/src/artifacts/artifact-page.tsx +42 -17
  291. package/src/artifacts/artifact-viewer.tsx +56 -0
  292. package/src/artifacts/artifacts.css +80 -0
  293. package/src/artifacts/card-details.ts +2 -2
  294. package/src/artifacts/card-preview.tsx +17 -3
  295. package/src/artifacts/comments-context.ts +125 -0
  296. package/src/artifacts/edit-session.tsx +6 -6
  297. package/src/artifacts/file-source.ts +10 -3
  298. package/src/artifacts/frame.tsx +50 -12
  299. package/src/artifacts/gallery.tsx +9 -11
  300. package/src/artifacts/guest-badge.tsx +21 -0
  301. package/src/artifacts/held-artifact.tsx +241 -0
  302. package/src/artifacts/holders.tsx +170 -0
  303. package/src/artifacts/live/boards.ts +95 -0
  304. package/src/artifacts/live/canvas.ts +402 -0
  305. package/src/artifacts/live/header.tsx +137 -0
  306. package/src/artifacts/live/hooks.ts +94 -0
  307. package/src/artifacts/live/presence.ts +147 -0
  308. package/src/artifacts/live/session.ts +520 -0
  309. package/src/artifacts/live/view.ts +81 -0
  310. package/src/artifacts/messages.ts +415 -24
  311. package/src/artifacts/page-queries.ts +2 -3
  312. package/src/artifacts/page-state.ts +16 -7
  313. package/src/artifacts/publish-edit.ts +50 -22
  314. package/src/artifacts/queries.ts +108 -10
  315. package/src/artifacts/references/references.tsx +6 -9
  316. package/src/artifacts/renderers/canvas/arrows.tsx +12 -39
  317. package/src/artifacts/renderers/canvas/board-editor.tsx +817 -0
  318. package/src/artifacts/renderers/canvas/board-properties.tsx +488 -0
  319. package/src/artifacts/renderers/canvas/board-source.ts +110 -0
  320. package/src/artifacts/renderers/canvas/board.tsx +309 -33
  321. package/src/artifacts/renderers/canvas/canvas.tsx +387 -72
  322. package/src/artifacts/renderers/canvas/comment-pins.tsx +465 -0
  323. package/src/artifacts/renderers/canvas/commenting.tsx +319 -0
  324. package/src/artifacts/renderers/canvas/comments-panel.tsx +574 -0
  325. package/src/artifacts/renderers/canvas/comments.ts +225 -0
  326. package/src/artifacts/renderers/canvas/draft.ts +41 -50
  327. package/src/artifacts/renderers/canvas/edit-mode.tsx +145 -20
  328. package/src/artifacts/renderers/canvas/focus.tsx +175 -24
  329. package/src/artifacts/renderers/canvas/items.tsx +179 -52
  330. package/src/artifacts/renderers/canvas/layout.ts +99 -47
  331. package/src/artifacts/renderers/canvas/presence.tsx +184 -0
  332. package/src/artifacts/renderers/canvas/previews.ts +127 -0
  333. package/src/artifacts/renderers/canvas/renderer.tsx +87 -22
  334. package/src/artifacts/renderers/canvas/thumbnail.tsx +56 -15
  335. package/src/artifacts/renderers/canvas/toolbar.tsx +1 -1
  336. package/src/artifacts/renderers/slides/slides.tsx +1 -1
  337. package/src/artifacts/version-menu.tsx +438 -0
  338. package/src/artifacts/view-context.ts +102 -0
  339. package/src/artifacts/viewer.tsx +205 -147
  340. package/src/build.ts +96 -11
  341. package/src/codegen.ts +83 -5
  342. package/src/createCustomApp.ts +20 -7
  343. package/src/index.ts +12 -0
  344. package/src/locale-messages.ts +24 -0
  345. package/src/metadata.ts +12 -0
  346. package/src/pages/console/action-run.tsx +20 -0
  347. package/src/pages/console/data/connectors.tsx +27 -3
  348. package/src/pages/console/data/datasets.tsx +30 -1
  349. package/src/pages/console/data/lake-health.tsx +299 -0
  350. package/src/pages/console/data/messages.ts +143 -2
  351. package/src/pages/console/data/pipelines.tsx +91 -3
  352. package/src/pages/console/data/projections.tsx +23 -4
  353. package/src/pages/console/data/syncs.tsx +39 -2
  354. package/src/pages/console/ontology/action-runs.tsx +8 -2
  355. package/src/pages/console/ontology/actions.tsx +39 -15
  356. package/src/pages/console/ontology/components/action-button.tsx +10 -0
  357. package/src/pages/console/ontology/components/artifact-picker.tsx +522 -0
  358. package/src/pages/console/ontology/components/object-query-bar.tsx +21 -5
  359. package/src/pages/console/ontology/lib/action-params.ts +10 -0
  360. package/src/pages/console/ontology/lineage/properties-panel.tsx +32 -24
  361. package/src/pages/console/ontology/object-page.tsx +2 -0
  362. package/src/pages/console/ontology/object-type.tsx +73 -14
  363. package/src/pages/console/ontology/object-types.tsx +56 -7
  364. package/src/pages/console/ontology/objects.tsx +167 -19
  365. package/src/pages/console/ontology/rules.tsx +186 -30
  366. package/src/pages/console/ontology/workflow.tsx +130 -74
  367. package/src/pages/console/ontology/workflows/run-input-form.tsx +21 -2
  368. package/src/pages/console/ontology/workflows/schema-shape.tsx +3 -0
  369. package/src/pages/console/ontology/workflows.tsx +34 -21
  370. package/src/pages/console/skeletons.tsx +99 -0
  371. package/src/pages/console/workflow-run.tsx +20 -0
  372. package/src/pages/section-page.tsx +37 -7
  373. package/src/pages/section-ui.tsx +96 -13
  374. package/src/pages/settings/activity/calendar.tsx +13 -6
  375. package/src/pages/settings/activity/connections.tsx +26 -9
  376. package/src/pages/settings/activity/page.tsx +31 -4
  377. package/src/pages/settings/activity/thread.tsx +32 -18
  378. package/src/pages/settings/activity/timeline.tsx +39 -0
  379. package/src/pages/settings/controls.tsx +19 -1
  380. package/src/pages/settings/developers.tsx +2 -2
  381. package/src/pages/settings/members.tsx +42 -9
  382. package/src/pages/settings/memory-history.tsx +76 -10
  383. package/src/pages/settings/memory.tsx +47 -5
  384. package/src/pages/settings/service-accounts.tsx +7 -2
  385. package/src/pages/settings/sessions.tsx +6 -2
  386. package/src/pages/settings/usage/breakdown.tsx +62 -2
  387. package/src/pages/settings/usage/limits.tsx +45 -3
  388. package/src/pages/settings/usage/messages.ts +0 -2
  389. package/src/pages/settings/usage/page.tsx +99 -52
  390. package/src/pages/settings/usage/runs.tsx +105 -8
  391. package/src/pages/settings/usage/spend-chart.tsx +79 -45
  392. package/src/pages/settings/usage/spend-model.ts +16 -0
  393. package/src/pages/values.tsx +72 -6
  394. package/src/pages.ts +4 -0
  395. package/src/sections/catalog.ts +6 -0
  396. package/src/sections/sections.tsx +2 -0
  397. package/src/service-worker.ts +176 -0
  398. package/src/shared-session.ts +73 -0
  399. package/src/shell/app-return.ts +115 -0
  400. package/src/shell/app-shell.tsx +125 -27
  401. package/src/shell/nav-items.tsx +2 -0
  402. package/src/shell/phone/back.ts +16 -0
  403. package/src/shell/phone/launch.ts +6 -0
  404. package/src/shell/phone/more-sheet.tsx +249 -0
  405. package/src/shell/phone/phone-foundations.tsx +43 -0
  406. package/src/shell/phone/phone.css +660 -0
  407. package/src/shell/phone/pull-to-refresh.tsx +201 -0
  408. package/src/shell/phone/routes.ts +34 -0
  409. package/src/shell/phone/screen-motion.ts +292 -0
  410. package/src/shell/phone/scroll-restoration.tsx +70 -0
  411. package/src/shell/phone/startup-image.ts +119 -0
  412. package/src/shell/phone/tab-bar.tsx +95 -0
  413. package/src/shell/phone/top-bar.tsx +195 -0
  414. package/src/shell/search-command.tsx +30 -14
  415. package/src/shell/user-menu.tsx +2 -1
  416. package/dist/chunk-4j3c3p72.js +0 -1487
  417. package/dist/chunk-4j3c3p72.js.map +0 -18
  418. package/dist/chunk-4mprsd2n.js.map +0 -10
  419. package/dist/chunk-ytadd0b5.js.map +0 -188
  420. /package/dist/{chunk-j8g956dt.js.map → chunk-fwb9mxwm.js.map} +0 -0
  421. /package/dist/{chunk-7fj9cfkw.js.map → chunk-kes4ygmz.js.map} +0 -0
  422. /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
@@ -1,72 +1,186 @@
1
- import { createContext, type ReactNode, useContext } from "react"
1
+ import { CANVAS_FILE } from "@sixb/core/artifacts"
2
+ import { cn } from "@sixb/ui/lib/utils"
3
+ import { useStoreApi } from "@xyflow/react"
4
+ import type { LucideIcon } from "lucide-react"
5
+ import {
6
+ createContext,
7
+ type ReactNode,
8
+ useContext,
9
+ useEffect,
10
+ useRef,
11
+ useState,
12
+ useSyncExternalStore,
13
+ } from "react"
2
14
  import { ArtifactFrame } from "../../frame"
3
15
  import type { ArtifactVersion } from "../../queries"
16
+ import type { BoardPreviews } from "./previews"
4
17
 
5
- /** The most boards live at once: each is a page running in its own frame. */
6
- export const MAX_LIVE_BOARDS = 12
18
+ /** The most boards and embeds live at once: each board is a page running in its own frame. */
19
+ export const MAX_LIVE_BOARDS = 8
7
20
  /**
8
- * How wide on screen a board is before it starts running: narrower, it is its outline. One already
9
- * running keeps running however small, so zooming out never reloads it.
21
+ * A board starts running once the view shows it at half its size, where its page's text still
22
+ * reads. Smaller, its picture shows as much, so it is its tile.
10
23
  */
11
- export const MIN_LIVE_WIDTH = 48
24
+ export const LIVE_FROM_SCALE = 0.5
25
+ /**
26
+ * Or, while it has no picture, once it is this wide on screen, a phone's width, where a wide
27
+ * board's layout reads: its outline shows nothing of it.
28
+ */
29
+ export const LIVE_FROM_WIDTH = 360
12
30
 
13
- /** A board's place on the canvas. */
31
+ /** A board's or an embed's place on the canvas. */
14
32
  export interface BoardPlace {
15
33
  readonly id: string
16
34
  readonly x: number
17
35
  readonly y: number
18
36
  readonly w: number
19
37
  readonly h: number
38
+ /** Whether its tile is a picture of it: a board's ready preview. */
39
+ readonly pictured?: boolean
40
+ }
41
+
42
+ /** Where the board view is: React Flow's transform, the pan then the zoom, and its size. */
43
+ export interface BoardView {
44
+ readonly transform: readonly [number, number, number]
45
+ readonly width: number
46
+ readonly height: number
20
47
  }
21
48
 
22
49
  /**
23
- * The boards to run, from where the board view is: those on screen and at least
24
- * {@link MIN_LIVE_WIDTH} wide there, or running already, at most {@link MAX_LIVE_BOARDS}. Those
25
- * running come first, so a pan doesn't swap one page for another, then the nearest the middle of
26
- * the view. The others show their outline until the view comes to them.
50
+ * The boards and embeds to run, from where the board view is: those on screen and large enough
51
+ * there, or running already, at most {@link MAX_LIVE_BOARDS}. One running keeps running however
52
+ * small while it is on screen, so zooming out never reloads it. Those running come first, so a
53
+ * pan doesn't swap one page for another, then the nearest the middle of the view. The others show
54
+ * their tile until the view comes to them.
27
55
  */
28
56
  export function liveBoards(
29
57
  boards: readonly BoardPlace[],
30
- view: {
31
- /** React Flow's transform: the pan, then the zoom. */
32
- readonly transform: readonly [number, number, number]
33
- readonly width: number
34
- readonly height: number
35
- },
58
+ view: BoardView,
36
59
  running: ReadonlySet<string> = new Set()
37
60
  ): ReadonlySet<string> {
38
61
  const [panX, panY, zoom] = view.transform
39
62
  const centerX = view.width / 2
40
63
  const centerY = view.height / 2
64
+
41
65
  const candidates = boards.flatMap((board) => {
42
66
  const left = board.x * zoom + panX
43
67
  const top = board.y * zoom + panY
44
68
  const width = board.w * zoom
45
69
  const height = board.h * zoom
46
70
  const onScreen = left < view.width && left + width > 0 && top < view.height && top + height > 0
71
+ const half = board.w * LIVE_FROM_SCALE
72
+ const large = width >= (board.pictured ? half : Math.min(half, LIVE_FROM_WIDTH))
47
73
  const kept = running.has(board.id)
48
- if (!onScreen || (width < MIN_LIVE_WIDTH && !kept)) return []
74
+ if (!onScreen || (!large && !kept)) return []
75
+
49
76
  const distance = Math.hypot(left + width / 2 - centerX, top + height / 2 - centerY)
50
77
  return [{ id: board.id, kept, distance }]
51
78
  })
79
+
52
80
  candidates.sort((a, b) => Number(b.kept) - Number(a.kept) || a.distance - b.distance)
53
81
  return new Set(candidates.slice(0, MAX_LIVE_BOARDS).map((candidate) => candidate.id))
54
82
  }
55
83
 
84
+ /**
85
+ * The boards and embeds running, kept as the view moves. Each item reads whether it is one of
86
+ * them, so a change draws again only the items it starts or stops, and a pan draws nothing.
87
+ */
88
+ export interface LiveSet {
89
+ readonly has: (id: string) => boolean
90
+ readonly subscribe: (listener: () => void) => () => void
91
+ }
92
+
93
+ /** The live set of these boards and embeds, worked out again as React Flow's view changes. */
94
+ export function useLiveSet(places: readonly BoardPlace[]): LiveSet {
95
+ const store = useStoreApi()
96
+ const [live] = useState(createLiveSet)
97
+
98
+ useEffect(() => {
99
+ let last: BoardView | null = null
100
+ const update = () => {
101
+ const { transform, width, height, fitViewQueued } = store.getState()
102
+ // Until the view is fitted, it is not where the reader will see it: a board there would
103
+ // start only to be seen small.
104
+ if (fitViewQueued) return
105
+
106
+ // The store changes for more than the view: what doesn't move it changes nothing here.
107
+ if (
108
+ last &&
109
+ last.width === width &&
110
+ last.height === height &&
111
+ last.transform.every((value, index) => value === transform[index])
112
+ ) {
113
+ return
114
+ }
115
+
116
+ last = { transform, width, height }
117
+ live.set(liveBoards(places, last, live.current()))
118
+ }
119
+
120
+ update()
121
+ return store.subscribe(update)
122
+ }, [store, places, live])
123
+
124
+ return live
125
+ }
126
+
127
+ function createLiveSet(): LiveSet & {
128
+ readonly current: () => ReadonlySet<string>
129
+ readonly set: (next: ReadonlySet<string>) => void
130
+ } {
131
+ let current: ReadonlySet<string> = new Set()
132
+ const listeners = new Set<() => void>()
133
+
134
+ return {
135
+ has: (id) => current.has(id),
136
+ current: () => current,
137
+ set: (next) => {
138
+ if (next.size === current.size && [...next].every((id) => current.has(id))) return
139
+
140
+ current = next
141
+ for (const listener of listeners) listener()
142
+ },
143
+ subscribe: (listener) => {
144
+ listeners.add(listener)
145
+ return () => listeners.delete(listener)
146
+ },
147
+ }
148
+ }
149
+
150
+ const NOTHING_LIVE: LiveSet = { has: () => false, subscribe: () => () => {} }
151
+
56
152
  interface LiveBoards {
57
153
  readonly version: ArtifactVersion | null
58
- readonly live: ReadonlySet<string>
154
+ readonly live: LiveSet
155
+ /** Whether each board's picture is ready, and the mode the reader sees it in. */
156
+ readonly previews: BoardPreviews
157
+ readonly mode: "light" | "dark"
59
158
  /** Opens a board over the canvas. */
60
159
  readonly open?: (id: string) => void
61
160
  }
62
161
 
63
- const LiveBoardsContext = createContext<LiveBoards>({ version: null, live: new Set() })
162
+ const LiveBoardsContext = createContext<LiveBoards>({
163
+ version: null,
164
+ live: NOTHING_LIVE,
165
+ previews: {},
166
+ mode: "light",
167
+ })
64
168
 
65
- /** The board view's version, the boards it runs, and how to open one. */
169
+ /** The board view's version, the boards it runs, their pictures, and how to open one. */
66
170
  export function useLiveBoards(): LiveBoards {
67
171
  return useContext(LiveBoardsContext)
68
172
  }
69
173
 
174
+ /** Whether a board or an embed runs now: it draws again only as that changes. */
175
+ export function useLive(id: string): boolean {
176
+ const { live } = useContext(LiveBoardsContext)
177
+ return useSyncExternalStore(
178
+ live.subscribe,
179
+ () => live.has(id),
180
+ () => false
181
+ )
182
+ }
183
+
70
184
  export function LiveBoardsProvider({
71
185
  value,
72
186
  children,
@@ -78,8 +192,155 @@ export function LiveBoardsProvider({
78
192
  }
79
193
 
80
194
  /**
81
- * A board's page, running, when the view shows it large enough: otherwise, and until it is ready,
82
- * its tile. On the board a frame takes no clicks, so dragging across it pans; it is a picture
195
+ * What a board or an embed shows while it doesn't run: a picture of it when there is one, else
196
+ * its outline, the icon of what it is in the middle, breathing while its picture is on its way.
197
+ * A board that changes keeps its last picture, breathing, until the new one is ready. A picture
198
+ * that can't be loaded gives way to its fallback, then to the outline. The name above says which
199
+ * it is.
200
+ */
201
+ export function ItemTile({
202
+ icon: Icon,
203
+ preview,
204
+ fallback,
205
+ pending = false,
206
+ onFail,
207
+ }: {
208
+ readonly icon: LucideIcon
209
+ /** A picture of the item, the size of its box. */
210
+ readonly preview?: string
211
+ /** Another picture of it, for when that one can't be loaded. */
212
+ readonly fallback?: string
213
+ readonly pending?: boolean
214
+ /** A picture could not be had: what the tile knows of its pictures may be out of date. */
215
+ readonly onFail?: () => void
216
+ }) {
217
+ const picture = usePicture(preview, fallback, pending, onFail)
218
+
219
+ if (picture.src) {
220
+ return (
221
+ <img
222
+ src={picture.src}
223
+ alt=""
224
+ decoding="async"
225
+ loading="lazy"
226
+ draggable={false}
227
+ onError={picture.fail}
228
+ // From the top at the item's width: a board taller than its picture, which stops 4000
229
+ // pixels down, shows the rest empty rather than a picture zoomed to fill it.
230
+ className={cn(
231
+ "block size-full object-contain object-top",
232
+ pending && "motion-safe:animate-pulse"
233
+ )}
234
+ {...(pending ? { "aria-busy": true } : {})}
235
+ />
236
+ )
237
+ }
238
+ return (
239
+ <div
240
+ className="flex size-full items-center justify-center bg-card"
241
+ {...(pending ? { "aria-busy": true } : {})}
242
+ >
243
+ {/*
244
+ * The icon breathes, not the tile, and only while the board is near enough to see it
245
+ * (artifacts.css): a hundred tiles breathing are a hundred repaints a frame.
246
+ */}
247
+ <Icon
248
+ className={cn("size-12 text-muted-foreground/30", pending && "motion-safe:animate-pulse")}
249
+ strokeWidth={1}
250
+ aria-hidden="true"
251
+ />
252
+ </div>
253
+ )
254
+ }
255
+
256
+ const NOTHING_FAILED: ReadonlySet<string> = new Set()
257
+
258
+ /**
259
+ * The picture to show of `preview`, else of `fallback` once it fails, without going blank as it
260
+ * changes: the one shown stays until the next has decoded, so a sharper picture, or one in the
261
+ * other mode, takes its place in one frame. While the next is `pending`, the one shown stays too:
262
+ * a board that changed shows its last picture until the new one is rendered. Nothing is shown
263
+ * before the first one, which loads in place, as an image does.
264
+ */
265
+ function usePicture(
266
+ preview: string | undefined,
267
+ fallback: string | undefined,
268
+ pending: boolean,
269
+ onFail: (() => void) | undefined
270
+ ): { readonly src: string | null; readonly fail: () => void } {
271
+ const [failed, setFailed] = useState(NOTHING_FAILED)
272
+ const onFailRef = useRef(onFail)
273
+ onFailRef.current = onFail
274
+ const wanted = [preview, fallback].find((src) => src !== undefined && !failed.has(src)) ?? null
275
+ const [shown, setShown] = useState(wanted)
276
+ const showing = shown !== null && !failed.has(shown)
277
+
278
+ useEffect(() => {
279
+ if (wanted === shown) return
280
+
281
+ // The next one is on its way: the one shown stays until it is ready.
282
+ if (!wanted && pending && showing) return
283
+
284
+ // Nothing worth keeping on screen, or nothing to come: the next one loads in place.
285
+ if (!wanted || !showing) {
286
+ setShown(wanted)
287
+ return
288
+ }
289
+
290
+ let current = true
291
+ const next = new Image()
292
+ next.src = wanted
293
+ next.decode().then(
294
+ () => {
295
+ if (current) setShown(wanted)
296
+ },
297
+ () => {
298
+ if (!current) return
299
+
300
+ setFailed((all) => new Set(all).add(wanted))
301
+ onFailRef.current?.()
302
+ }
303
+ )
304
+ return () => {
305
+ current = false
306
+ }
307
+ }, [wanted, shown, showing, pending])
308
+
309
+ return {
310
+ src: showing ? shown : wanted,
311
+ fail: () => {
312
+ const src = showing ? shown : wanted
313
+ if (!src) return
314
+
315
+ setFailed((all) => new Set(all).add(src))
316
+ onFailRef.current?.()
317
+ },
318
+ }
319
+ }
320
+
321
+ /**
322
+ * The version a board's frame runs, kept as long as the pages it holds are the same: a canvas
323
+ * edited live is written again every few seconds, moving its revision, while only `canvas.json`
324
+ * changes. Its boards then keep running as they were rather than load again, and load the next
325
+ * revision only once a page, or a file one loads, changed.
326
+ */
327
+ function usePagesVersion(version: ArtifactVersion | null): ArtifactVersion | null {
328
+ const kept = useRef<{ readonly version: ArtifactVersion; readonly pages: string } | null>(null)
329
+ if (!version) return null
330
+
331
+ const pages = `${version.artifactId}@${version.version}\n${version.files
332
+ .filter((file) => file.path !== CANVAS_FILE)
333
+ .map((file) => `${file.path}:${file.file.digest}`)
334
+ .join("\n")}`
335
+ if (kept.current?.pages !== pages) kept.current = { version, pages }
336
+ return kept.current.version
337
+ }
338
+
339
+ /**
340
+ * A board's page, running, when the view shows it large enough, over its tile: the tile stays
341
+ * under the frame while it fades in, once its page is ready, so a board never flashes blank as it
342
+ * starts or stops; then the tile goes, so nothing of it shows through a page drawn on the board's
343
+ * own surface. On the board a frame takes no clicks, so dragging across it pans; it is a picture
83
344
  * until the reader opens it.
84
345
  */
85
346
  export function LiveBoard({
@@ -93,16 +354,31 @@ export function LiveBoard({
93
354
  readonly title: string
94
355
  readonly tile: ReactNode
95
356
  }) {
96
- const { version, live } = useContext(LiveBoardsContext)
97
- if (!version || !live.has(id)) return <>{tile}</>
357
+ const { version } = useContext(LiveBoardsContext)
358
+ const live = useLive(id)
359
+ const pages = usePagesVersion(version)
360
+ // The pages whose frame said it is ready: a frame that runs other pages, or stops, shows the
361
+ // tile again until it is.
362
+ const [ready, setReady] = useState<ArtifactVersion | null>(null)
363
+ const running = live && pages !== null && ready === pages
98
364
  return (
99
- <ArtifactFrame
100
- version={version}
101
- entry={file}
102
- title={title}
103
- decorative
104
- className="size-full overflow-hidden rounded-[10px]"
105
- fallback={tile}
106
- />
365
+ <div className="group/board relative size-full" data-running={running ? "" : undefined}>
366
+ {/* Gone once the frame has faded in over it: as long as the fade, then not drawn at all. */}
367
+ <div className="size-full transition-[visibility] delay-300 group-data-[running]/board:invisible">
368
+ {tile}
369
+ </div>
370
+ {pages && live ? (
371
+ <ArtifactFrame
372
+ version={pages}
373
+ entry={file}
374
+ title={title}
375
+ decorative
376
+ className="absolute inset-0 overflow-hidden rounded-[10px]"
377
+ onEvent={(event) => {
378
+ if (event.event === "ready") setReady(pages)
379
+ }}
380
+ />
381
+ ) : null}
382
+ </div>
107
383
  )
108
384
  }