@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
@@ -0,0 +1,39 @@
1
+ /** Where the service worker is served: a Sixb name, so a project's own `public/sw.js` keeps its. */
2
+ export declare const SERVICE_WORKER_PATH = "/sixb-service-worker.js";
3
+ /**
4
+ * Paths the app's origin keeps for the API, sign-in, docs and shared links. The worker leaves them
5
+ * to the network, as the app's link handling does.
6
+ */
7
+ export declare const RESERVED_PATH_PREFIXES: readonly ["/api", "/auth", "/ws", "/docs", "/shared"];
8
+ /**
9
+ * Names `buildApp` gives entries, chunks and assets: a content hash keeps each one's contents fixed
10
+ * under its URL, so the server caches them forever and the worker can serve them without asking.
11
+ */
12
+ export declare const IMMUTABLE_ASSET_PATTERN: RegExp;
13
+ export interface ServiceWorkerOptions {
14
+ /** Changes with every build, so a deploy replaces what the device keeps. */
15
+ readonly version: string;
16
+ /** The shell's entry script: a shell that doesn't name it belongs to another deploy. */
17
+ readonly entry: string;
18
+ /** Same-origin files the app needs to open: its entry script and stylesheet, and its icons. */
19
+ readonly precache: readonly string[];
20
+ }
21
+ /**
22
+ * The service worker a production build ships. It keeps the app on the device, so the installed
23
+ * app opens on a slow connection or none:
24
+ *
25
+ * - A page goes to the network first, and opens from the device when the network fails or takes
26
+ * longer than three seconds. Every page is the same app shell, saved from `/` once per version.
27
+ * - A hashed file comes from the device once saved; any other file of the app's comes from the
28
+ * network, and from the device when the network fails. Each is saved as it loads.
29
+ * - Other origins, such as a separately served API, and the reserved paths pass through untouched.
30
+ *
31
+ * Installing saves the shell and the files it opens with; a new version takes over at once. The last
32
+ * version's files stay one more round, for a page still running it, and older ones go. The page's
33
+ * data still comes from the API.
34
+ *
35
+ * With navigation preload, the browser asks for a page while the worker starts rather than after, so
36
+ * the worker adds no wait to a launch online.
37
+ */
38
+ export declare function renderServiceWorker(options: ServiceWorkerOptions): string;
39
+ //# sourceMappingURL=service-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-worker.d.ts","sourceRoot":"","sources":["../src/service-worker.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,4BAA4B,CAAA;AAE5D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,uDAAwD,CAAA;AAE3F;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QACsD,CAAA;AAK1F,MAAM,WAAW,oBAAoB;IACnC,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,wFAAwF;IACxF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,+FAA+F;IAC/F,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACrC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAkIzE"}
@@ -0,0 +1,25 @@
1
+ import type { SixbSharedAccessSession } from "@sixb/client/browser";
2
+ import { type QueryClient } from "@tanstack/react-query";
3
+ /** The visitor of a shared link, as their session knows them. */
4
+ export interface SharedGuest {
5
+ readonly grantId: string;
6
+ /** The page the link opens, within the app: where the guest goes back to. */
7
+ readonly destinationPath: string;
8
+ /** The author id of the comments they write. */
9
+ readonly id: string;
10
+ /** The name they gave, which their comments and presence carry; none until they give it. */
11
+ readonly name?: string;
12
+ }
13
+ /**
14
+ * Keeps the shared link's session the bootstrap opened. Nobody is signed in: the member's session
15
+ * is never asked for, as the boundary would refuse it.
16
+ */
17
+ export declare function keepSharedSession(queries: QueryClient, session: SixbSharedAccessSession): void;
18
+ /** The guest reading through a shared link, or `null` for anyone else. */
19
+ export declare function useSharedGuest(): SharedGuest | null;
20
+ /**
21
+ * Gives the guest's name, which their session keeps for their comments and presence. Rejects when
22
+ * the API refuses it, so a form can say why.
23
+ */
24
+ export declare function useGiveGuestName(): (name: string) => Promise<void>;
25
+ //# sourceMappingURL=shared-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-session.d.ts","sourceRoot":"","sources":["../src/shared-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,OAAO,EAAE,KAAK,WAAW,EAA4B,MAAM,uBAAuB,CAAA;AAQlF,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAI9F;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,IAAI,WAAW,GAAG,IAAI,CAgBnD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAiBlE"}
@@ -0,0 +1,35 @@
1
+ import type { QueryClient } from "@tanstack/react-query";
2
+ /** Away at least this long, the app refreshes what it shows when it comes back. */
3
+ export declare const REFRESH_AFTER_MS = 30000;
4
+ /**
5
+ * Relaunched within this long of being left, the installed app opens on the screen it was left on.
6
+ * iOS closes a web app in the background as it needs the memory, and opens it again at its start
7
+ * page; a native app comes back where it was.
8
+ */
9
+ export declare const RESTORE_WITHIN_MS: number;
10
+ export interface LeftScreen {
11
+ /** The address, with its query string. */
12
+ readonly path: string;
13
+ /** When the app was left, in milliseconds since the epoch. */
14
+ readonly at: number;
15
+ }
16
+ /**
17
+ * In the installed app, refreshes every query on screen when the app comes back after
18
+ * `REFRESH_AFTER_MS` or longer in the background, so returning to it shows what changed, as a
19
+ * native app does. A browser tab keeps the query client's own choice not to refetch on focus.
20
+ * Once per page.
21
+ */
22
+ export declare function refreshOnReturn(queryClient: QueryClient): void;
23
+ /**
24
+ * In the installed app, reopens the screen it was left on when it is launched again at its start
25
+ * page within `RESTORE_WITHIN_MS`, before the first render, and remembers the screen each time the
26
+ * app is left. Back from a reopened record climbs to its list (`useBack`). Browser tabs keep their
27
+ * own history and are left alone.
28
+ */
29
+ export declare function restoreLastScreen(): void;
30
+ /** The screen to reopen at launch, or null to open where iOS did. */
31
+ export declare function screenToReopen(left: LeftScreen | null, launch: {
32
+ readonly path: string;
33
+ readonly now: number;
34
+ }): string | null;
35
+ //# sourceMappingURL=app-return.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-return.d.ts","sourceRoot":"","sources":["../../src/shell/app-return.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,QAAS,CAAA;AAEtC;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAAc,CAAA;AAI5C,MAAM,WAAW,UAAU;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AAKD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAe9D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAwBxC;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAC5B,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,MAAM,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACtD,MAAM,GAAG,IAAI,CAKf"}
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, ReactNode } from "react";
1
+ import { type CSSProperties, type ReactNode } from "react";
2
2
  import { type NavEntry } from "./nav-items";
3
3
  export interface AppShellProviderProps {
4
4
  readonly defaultOpen?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../src/shell/app-shell.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,OAAO,EAAE,KAAK,QAAQ,EAAY,MAAM,aAAa,CAAA;AAKrD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,EAAE,qBAAqB,+BAQ/F;AAED,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,CAAA;IAC9C,wCAAwC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAA;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;IACpD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAiB,EACjB,WAAoB,EACpB,IAAa,EACb,WAAW,EACX,QAAQ,GACT,EAAE,aAAa,+BAiCf"}
1
+ {"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../src/shell/app-shell.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAKnE,OAAO,EAAc,KAAK,QAAQ,EAA0B,MAAM,aAAa,CAAA;AAQ/E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,EAAE,qBAAqB,+BAW/F;AAED,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,CAAA;IAC9C,wCAAwC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAA;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;IACpD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,KAAK,EACL,OAAiB,EACjB,WAAoB,EACpB,IAAa,EACb,WAAW,EACX,QAAQ,GACT,EAAE,aAAa,+BAkBf"}
@@ -12,6 +12,8 @@ export interface NavItem {
12
12
  readonly badge?: ReactNode;
13
13
  /** Links nested under this one. */
14
14
  readonly items?: readonly NavItem[];
15
+ /** One of the places a phone's tab bar holds; the rest are under More. */
16
+ readonly tab?: boolean;
15
17
  }
16
18
  /** Links under a heading. */
17
19
  export interface NavGroup {
@@ -1 +1 @@
1
- {"version":3,"file":"nav-items.d.ts","sourceRoot":"","sources":["../../src/shell/nav-items.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,+BAA+B;AAC/B,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mGAAmG;IACnG,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,oDAAoD;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;CACpC;AAED,6BAA6B;AAC7B,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAA;CACnC;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CACpC;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,+BA+ChD;AA6BD,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,WAExF;AASD,sFAAsF;AACtF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
1
+ {"version":3,"file":"nav-items.d.ts","sourceRoot":"","sources":["../../src/shell/nav-items.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,+BAA+B;AAC/B,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mGAAmG;IACnG,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,oDAAoD;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,6BAA6B;AAC7B,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAA;CACnC;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CACpC;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,aAAa,+BA+ChD;AA6BD,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,WAExF;AASD,sFAAsF;AACtF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Back, as a phone's navigation bar does it: one step back through the app's history, else, on a
3
+ * screen opened directly, up to the screen above it in place of this one.
4
+ */
5
+ export declare function useBack(): () => void;
6
+ //# sourceMappingURL=back.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"back.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/back.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,OAAO,IAAI,MAAM,IAAI,CAOpC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The launch screen's icon size in CSS pixels. The production loading shell and the iOS launch
3
+ * image draw the app's icon at this size in the middle of the screen, so one hands over to the
4
+ * other without a jump.
5
+ */
6
+ export declare const LAUNCH_ICON_SIZE = 72;
7
+ //# sourceMappingURL=launch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/launch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAA"}
@@ -0,0 +1,36 @@
1
+ import type { ComponentType, ReactNode } from "react";
2
+ import { type NavEntry } from "../nav-items";
3
+ export interface PhoneMoreSheetProps {
4
+ /** The app's places; those in the tab bar are left out. */
5
+ readonly nav: readonly NavEntry[];
6
+ /** More of the app's own, after its places, such as recent conversations. */
7
+ readonly children?: ReactNode;
8
+ }
9
+ /**
10
+ * Everything beyond the tab bar, as a sheet that rises from the bottom: the account and its theme,
11
+ * the places the tab bar doesn't hold, Artifacts and the built-in sections, and sign out. It takes
12
+ * the sidebar's place on a phone and opens with it, so anything that opens the sidebar, the tab
13
+ * bar's More and ⌘B included, opens this.
14
+ */
15
+ export declare function PhoneMoreSheet({ nav, children }: PhoneMoreSheetProps): import("react").JSX.Element;
16
+ /** A labelled group of rows in the More sheet. */
17
+ export declare function PhoneMoreGroup({ label, children, }: {
18
+ readonly label?: string;
19
+ readonly children: ReactNode;
20
+ }): import("react").JSX.Element;
21
+ /** One row in the More sheet: an optional icon, the label and a chevron. A link to another site
22
+ * opens in a new tab, as the sidebar's do. */
23
+ export declare function PhoneMoreRow({ to, label, icon: Icon, current, trailing, nested, onNavigate, }: {
24
+ readonly to: string;
25
+ readonly label: ReactNode;
26
+ readonly icon?: ComponentType<{
27
+ readonly className?: string;
28
+ }>;
29
+ readonly current?: boolean;
30
+ /** Shown before the chevron, such as a working indicator. */
31
+ readonly trailing?: ReactNode;
32
+ /** One of a place's own pages, set in under it. */
33
+ readonly nested?: boolean;
34
+ readonly onNavigate?: () => void;
35
+ }): import("react").JSX.Element;
36
+ //# sourceMappingURL=more-sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"more-sheet.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/more-sheet.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,OAAO,EAA6B,KAAK,QAAQ,EAAgB,MAAM,cAAc,CAAA;AAKrF,MAAM,WAAW,mBAAmB;IAClC,2DAA2D;IAC3D,QAAQ,CAAC,GAAG,EAAE,SAAS,QAAQ,EAAE,CAAA;IACjC,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAkEpE;AAED,kDAAkD;AAClD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,+BAOA;AAED;8CAC8C;AAC9C,wBAAgB,YAAY,CAAC,EAC3B,EAAE,EACF,KAAK,EACL,IAAI,EAAE,IAAI,EACV,OAAO,EACP,QAAQ,EACR,MAAM,EACN,UAAU,GACX,EAAE;IACD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,mDAAmD;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACjC,+BAyCA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * What makes every Sixb app behave like an installed one on a phone, whatever its layout: the
3
+ * keyboard, sheets that pull down to close, screens that push and pop, scroll positions kept across
4
+ * Back, pull to refresh, and the launch image iOS shows when the app opens. The generated root
5
+ * renders it once, inside the router; each part does nothing with a mouse or on a wide screen. The
6
+ * back swipe is iOS's own.
7
+ */
8
+ export declare function PhoneFoundations(): import("react").JSX.Element;
9
+ //# sourceMappingURL=phone-foundations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-foundations.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/phone-foundations.tsx"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,gCAY/B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Pull down at the top of any page to refresh what it shows, as native lists do. Installed web
3
+ * apps lose the browser's own pull-to-refresh, so this restores it for the app's data: the page
4
+ * follows the finger with a rubber band, the activity indicator draws its ticks in the gap under
5
+ * the top bar as the pull arms, and every query on screen refetches without reloading the app.
6
+ * An element that owns vertical drags opts out with `data-no-pull-refresh`.
7
+ */
8
+ export declare function PullToRefresh(): import("react").JSX.Element;
9
+ //# sourceMappingURL=pull-to-refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-to-refresh.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/pull-to-refresh.tsx"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,wBAAgB,aAAa,gCAoJ5B"}
@@ -0,0 +1,12 @@
1
+ /** The page's scroll container, which the shell marks with `data-app-scroll`. */
2
+ export declare function appScroller(): HTMLElement | null;
3
+ export declare function normalizePath(pathname: string): string;
4
+ /** A top-level screen, such as Home or a list: it shows its title, never a back button. */
5
+ export declare function isRootPath(pathname: string): boolean;
6
+ /** The section a screen belongs to: its first segment, or "" for Home. */
7
+ export declare function sectionOf(pathname: string): string;
8
+ /** The screen above this one: the address without its last segment. */
9
+ export declare function parentPath(pathname: string): string;
10
+ /** This history entry's place in the app's history, as the router counts it. */
11
+ export declare function historyIndex(state?: unknown): number;
12
+ //# sourceMappingURL=routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/routes.ts"],"names":[],"mappings":"AAKA,iFAAiF;AACjF,wBAAgB,WAAW,IAAI,WAAW,GAAG,IAAI,CAEhD;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,2FAA2F;AAC3F,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,uEAAuE;AACvE,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,KAAK,GAAE,OAA8B,GAAG,MAAM,CAG1E"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Watch the router's history calls so the screen can be copied before React replaces it.
3
+ * Returns the function that stops watching.
4
+ */
5
+ export declare function watchScreenChanges(): () => void;
6
+ /**
7
+ * Called once the next page has rendered, before the browser paints it: moves the screens. Reads
8
+ * the address itself, as the history calls it watches carry it, router basename and all.
9
+ */
10
+ export declare function runScreenMotion(): void;
11
+ //# sourceMappingURL=screen-motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"screen-motion.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/screen-motion.ts"],"names":[],"mappings":"AAyCA;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,IAAI,CAwC/C;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAetC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The app scrolls inside one container that stays mounted between pages, so the browser can't
3
+ * manage its position. A new screen starts at the top; Back comes back to where the screen was
4
+ * left. Changing only the query string, such as a filter, keeps the position.
5
+ */
6
+ export declare function ScrollRestoration(): null;
7
+ //# sourceMappingURL=scroll-restoration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-restoration.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/scroll-restoration.tsx"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAgB,iBAAiB,SAyDhC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * iOS shows a Home Screen app's launch image, read from `apple-touch-startup-image` links when the
3
+ * app is added, and a blank screen without one. It takes no part of the manifest, and wants one
4
+ * image per screen size and orientation, exactly sized. In Safari on an iPhone or iPad this draws
5
+ * the two for the screen in hand, so whatever device adds the app has its own: the app's background
6
+ * with its icon in the middle, matching the loading shell it hands over to. They follow the app's
7
+ * theme until the app is added. Nothing runs once installed, on a shared link, elsewhere, or
8
+ * without canvas.
9
+ */
10
+ export declare function watchStartupImages(): () => void;
11
+ /** The `media` that matches this screen in one orientation, as iOS reads it. */
12
+ export declare function startupImageMedia(screen: {
13
+ readonly width: number;
14
+ readonly height: number;
15
+ readonly scale: number;
16
+ }, orientation: "portrait" | "landscape"): string;
17
+ //# sourceMappingURL=startup-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startup-image.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/startup-image.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,IAAI,CA+B/C;AAED,gFAAgF;AAChF,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACnF,WAAW,EAAE,UAAU,GAAG,WAAW,GACpC,MAAM,CAIR"}
@@ -0,0 +1,14 @@
1
+ import { type NavItem } from "../nav-items";
2
+ export interface PhoneTabBarProps {
3
+ /** The places the bar holds, up to four; More, for everything else, follows them. A link to
4
+ * another site is never a tab. */
5
+ readonly items: readonly NavItem[];
6
+ }
7
+ /**
8
+ * A phone's tab bar: a floating glass capsule with the places people go most and More for
9
+ * everything else, and a lens that glides to the current tab. Switching tabs returns to where that
10
+ * tab was left; tapping the current tab goes back to its first screen, and from there scrolls to
11
+ * the top. More opens the sidebar, which a phone shows as the More sheet.
12
+ */
13
+ export declare function PhoneTabBar({ items }: PhoneTabBarProps): import("react").JSX.Element | null;
14
+ //# sourceMappingURL=tab-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-bar.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/tab-bar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAA6B,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAMtE,MAAM,WAAW,gBAAgB;IAC/B;sCACkC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAA;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,gBAAgB,sCAuEtD"}
@@ -0,0 +1,24 @@
1
+ import { type ReactNode } from "react";
2
+ export interface PhoneTopBarProps {
3
+ /** Controls at the trailing end, such as Search; a page's own actions join them. */
4
+ readonly trailing?: ReactNode;
5
+ /** Whether the page's heading moves into the bar as it scrolls away. Off for a greeting. */
6
+ readonly title?: boolean;
7
+ /** Sit above the page's own overlays, as over a full-screen conversation. */
8
+ readonly raised?: boolean;
9
+ }
10
+ /**
11
+ * A phone's top bar, in the iOS 26 manner. It has no bar at all while the page is at rest: its
12
+ * controls float as glass over the page, and once content scrolls beneath them a soft blurred edge
13
+ * fades in. Pushed screens get a back button (`useBack`); the page's first heading moves into the
14
+ * bar when it scrolls out of view, as large titles do.
15
+ */
16
+ export declare function PhoneTopBar(props: PhoneTopBarProps): import("react").JSX.Element | null;
17
+ /**
18
+ * A page's own actions in the phone's top bar, beside its trailing controls, such as a record's
19
+ * Edit. Renders nothing while the bar is not shown, so wider screens keep the page's own controls.
20
+ */
21
+ export declare function PhoneBarActions({ children }: {
22
+ readonly children: ReactNode;
23
+ }): import("react").ReactPortal | null;
24
+ //# sourceMappingURL=top-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-bar.d.ts","sourceRoot":"","sources":["../../../src/shell/phone/top-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6C,MAAM,OAAO,CAAA;AAOjF,MAAM,WAAW,gBAAgB;IAC/B,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCAIlD;AAyDD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAU7E"}
@@ -2,11 +2,13 @@ import { type NavEntry } from "./nav-items";
2
2
  export interface SearchCommandProps {
3
3
  /** The app's own pages, listed before the built-in sections'. `AppShell` passes its nav. */
4
4
  readonly pages?: readonly NavEntry[];
5
+ /** A row in the sidebar, or an icon in a phone's top bar, where search fills the screen. */
6
+ readonly placement?: "sidebar" | "toolbar";
5
7
  }
6
8
  /**
7
9
  * A Search button for the sidebar, and ⌘K anywhere: the app's pages, every built-in section page
8
10
  * this person may open, and the project's objects as they type, each opening its page. Shared
9
11
  * links, which open one page, leave it out.
10
12
  */
11
- export declare function SearchCommand({ pages }: SearchCommandProps): import("react").JSX.Element | null;
13
+ export declare function SearchCommand({ pages, placement }: SearchCommandProps): import("react").JSX.Element | null;
12
14
  //# sourceMappingURL=search-command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-command.d.ts","sourceRoot":"","sources":["../../src/shell/search-command.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAc,KAAK,QAAQ,EAAgB,MAAM,aAAa,CAAA;AAErE,MAAM,WAAW,kBAAkB;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAA;CACrC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAU,EAAE,EAAE,kBAAkB,sCA0G/D"}
1
+ {"version":3,"file":"search-command.d.ts","sourceRoot":"","sources":["../../src/shell/search-command.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAc,KAAK,QAAQ,EAAgB,MAAM,aAAa,CAAA;AAErE,MAAM,WAAW,kBAAkB;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAA;IACpC,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAU,EAAE,SAAqB,EAAE,EAAE,kBAAkB,sCAwHtF"}
@@ -17,6 +17,8 @@ export interface UserMenuItemProps {
17
17
  * way into the sections.
18
18
  */
19
19
  declare function UserMenuRoot({ children }: UserMenuProps): import("react").JSX.Element;
20
+ /** Up to two letters for an avatar without a picture. */
21
+ export declare function initials(name: string): string;
20
22
  declare function UserMenuItem({ href, icon: Icon, onSelect, children }: UserMenuItemProps): import("react").JSX.Element;
21
23
  export declare const UserMenu: typeof UserMenuRoot & {
22
24
  Item: typeof UserMenuItem;
@@ -1 +1 @@
1
- {"version":3,"file":"user-menu.d.ts","sourceRoot":"","sources":["../../src/shell/user-menu.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,+BA4GhD;AAsCD,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAchF;AAED,eAAO,MAAM,QAAQ;;CAAsD,CAAA"}
1
+ {"version":3,"file":"user-menu.d.ts","sourceRoot":"","sources":["../../src/shell/user-menu.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,MAAM,WAAW,aAAa;IAC5B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,+BA4GhD;AA+BD,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK7C;AAED,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAchF;AAED,eAAO,MAAM,QAAQ;;CAAsD,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixb/app",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Custom app toolkit for Sixb projects — route scanning, dev serving, and production builds",
5
5
  "keywords": [
6
6
  "sixb",
@@ -54,15 +54,18 @@
54
54
  "prepack": "bun run build"
55
55
  },
56
56
  "dependencies": {
57
- "@sixb/client": "^0.2.1",
58
- "@sixb/core": "^0.2.2",
59
- "@sixb/ui": "^0.2.0",
57
+ "@sixb/client": "^0.2.3",
58
+ "@sixb/core": "^0.2.3",
59
+ "@sixb/ui": "^0.2.3",
60
60
  "@tailwindcss/cli": "^4.2.2",
61
61
  "@xyflow/react": "^12.10.2",
62
+ "lib0": "0.2.119",
62
63
  "lucide-react": "^0.562.0",
63
64
  "parse5": "^8.0.0",
64
65
  "recharts": "^3.8.0",
65
- "tailwindcss": "^4.1.18"
66
+ "tailwindcss": "^4.1.18",
67
+ "y-protocols": "1.0.7",
68
+ "yjs": "^13.6.33"
66
69
  },
67
70
  "peerDependencies": {
68
71
  "@tanstack/react-query": "^5.0.0",
@@ -1,9 +1,12 @@
1
+ import { getAuthSessionOptions, getProjectInfoOptions } from "@sixb/client/hooks"
1
2
  import { Button, EmptyState, Toaster } from "@sixb/ui/components"
2
3
  import { cn } from "@sixb/ui/lib/utils"
4
+ import { useQueryClient } from "@tanstack/react-query"
3
5
  import { MessagesSquare } from "lucide-react"
4
- import { type ReactNode, useId } from "react"
6
+ import { type ReactNode, useEffect, useId } from "react"
5
7
  import { ArtifactPeopleContext } from "../artifacts/people"
6
8
  import type { ArtifactTarget } from "../artifacts/target"
9
+ import { takeAgentDraft } from "../artifacts/view-context"
7
10
  import { ArtifactPanelRoot } from "./artifact-panel"
8
11
  import { ComputerBadge, ComputerOfflineNotice } from "./components/computer-place"
9
12
  import { ConversationPanel } from "./components/conversation-panel"
@@ -11,12 +14,16 @@ import { SandboxRecovery } from "./components/sandbox-recovery"
11
14
  import { SharedThreadNotice } from "./components/shared-thread-notice"
12
15
  import { ThreadArtifactsMenu } from "./components/thread-artifacts-menu"
13
16
  import { ThreadPeople } from "./components/thread-people"
14
- import { useAgentConversation } from "./hooks/use-agent-conversation"
17
+ import { useComposerInsertion } from "./composer-insertion"
18
+ import {
19
+ type UseAgentConversationInput,
20
+ useAgentConversation,
21
+ } from "./hooks/use-agent-conversation"
15
22
  import { useThreadSharing } from "./hooks/use-thread-sharing"
16
23
  import { useAgentMessages } from "./i18n"
17
24
  import { knownName, MessageAuthorsContext, useConversationAuthors } from "./message-authors"
18
25
  import { personName, threadOwner } from "./sharing"
19
- import type { AgentContextInput } from "./types"
26
+ import type { AgentContextInput, AgentThreadSandboxParams } from "./types"
20
27
 
21
28
  export interface AgentChatProps {
22
29
  readonly threadId?: string | null
@@ -43,6 +50,13 @@ export interface AgentChatProps {
43
50
  * may call it. False hides it.
44
51
  */
45
52
  readonly dictation?: boolean
53
+ /**
54
+ * The sandbox the conversation the next message creates works in, as the project's sandbox
55
+ * declares its params. See {@link UseAgentConversationInput.newThreadSandbox}.
56
+ */
57
+ readonly newThreadSandbox?: AgentThreadSandboxParams
58
+ /** Under the input of a new conversation, on the right: the page's choices for it. */
59
+ readonly newThreadControls?: ReactNode
46
60
  }
47
61
 
48
62
  /** Route-independent conversation view; routing and embedded panels only adapt its callbacks. */
@@ -62,13 +76,39 @@ export function AgentChat({
62
76
  conversationHeaderActions: hostHeaderActions,
63
77
  composerPlaceholder,
64
78
  dictation = true,
79
+ newThreadSandbox,
80
+ newThreadControls,
65
81
  }: AgentChatProps) {
66
82
  const messages = useAgentMessages()
67
83
  const threadId = threadIdInput ?? null
68
84
  const conversation = useAgentConversation({
69
85
  threadId,
70
86
  onThreadCreated: onNavigateThread,
87
+ newThreadSandbox,
71
88
  })
89
+ // Words an artifact puts in the input, as comments it asks the Agent to act on.
90
+ const { insertion, insert, inserted } = useComposerInsertion()
91
+
92
+ // What an artifact on its own page asked the Agent before coming here starts the input, when
93
+ // it was this person, in this project, a moment ago.
94
+ const queries = useQueryClient()
95
+ useEffect(() => {
96
+ let current = true
97
+ Promise.all([
98
+ queries.fetchQuery({ ...getProjectInfoOptions(), staleTime: Number.POSITIVE_INFINITY }),
99
+ queries.fetchQuery({ ...getAuthSessionOptions(), staleTime: Number.POSITIVE_INFINITY }),
100
+ ])
101
+ .then(([project, session]) => {
102
+ const userId = session.authenticated ? session.user.id : null
103
+ const pending = current ? takeAgentDraft({ userId, projectId: project.id }) : null
104
+ if (pending) insert(pending)
105
+ })
106
+ .catch(() => {})
107
+ return () => {
108
+ current = false
109
+ }
110
+ }, [insert, queries])
111
+
72
112
  // Each chat has its own toaster, so a toast shows once however many chats are mounted.
73
113
  const toasterId = useId()
74
114
  const sharing = useThreadSharing({
@@ -149,11 +189,13 @@ export function AgentChat({
149
189
  <ConversationPanel
150
190
  agent={conversation.currentAgent}
151
191
  transcript={conversation.transcriptProps}
152
- composer={
153
- dictation
154
- ? conversation.composerProps
155
- : { ...conversation.composerProps, dictation: undefined }
156
- }
192
+ composer={{
193
+ ...conversation.composerProps,
194
+ ...(dictation ? {} : { dictation: undefined }),
195
+ ...(threadId === null && newThreadControls ? { newThreadControls } : {}),
196
+ ...(insertion ? { insertion } : {}),
197
+ onInserted: inserted,
198
+ }}
157
199
  messagesLoading={conversation.messagesLoading}
158
200
  messagesError={conversation.messagesError ? messages.chat.messagesLoadFailed : null}
159
201
  currentThread={conversation.currentThread}
@@ -196,6 +238,7 @@ export function AgentChat({
196
238
  scopeKey={threadId ?? "draft"}
197
239
  routeTarget={artifactTarget}
198
240
  onRouteTargetChange={onArtifactTargetChange}
241
+ {...(readOnly ? {} : { onAgentDraft: insert })}
199
242
  >
200
243
  <div
201
244
  data-agent-panel={compact ? "" : undefined}
@@ -3,6 +3,7 @@ import { cn } from "@sixb/ui/lib/utils"
3
3
  import { type ReactNode, useCallback, useState } from "react"
4
4
  import { AgentChat } from "./agent-chat"
5
5
  import { useRegisteredAgentContext } from "./agent-context-provider"
6
+ import type { AgentThreadSandboxParams } from "./types"
6
7
 
7
8
  export interface AgentPanelProps {
8
9
  /** Omitted uses AgentContextProvider; provided is the complete controlled ambient list. */
@@ -29,6 +30,13 @@ export interface AgentPanelProps {
29
30
  readonly className?: string
30
31
  /** Centered content for an empty conversation. Omit for the agent identity; null hides it. */
31
32
  readonly welcomeContent?: ReactNode
33
+ /**
34
+ * The sandbox the conversation the next message creates works in, as the project's sandbox
35
+ * declares its params, such as a repository and a branch.
36
+ */
37
+ readonly newThreadSandbox?: AgentThreadSandboxParams
38
+ /** Under the input of a new conversation, on the right: the page's choices for it. */
39
+ readonly newThreadControls?: ReactNode
32
40
  }
33
41
 
34
42
  /** Embeddable chat that never reads or changes the host application's route. */
@@ -47,6 +55,8 @@ export function AgentPanel({
47
55
  compact = true,
48
56
  className,
49
57
  welcomeContent,
58
+ newThreadSandbox,
59
+ newThreadControls,
50
60
  }: AgentPanelProps) {
51
61
  const registeredContext = useRegisteredAgentContext()
52
62
  const ambientContext = context === undefined ? registeredContext : context
@@ -73,6 +83,8 @@ export function AgentPanel({
73
83
  composerPlaceholder={composerPlaceholder}
74
84
  dictation={dictation}
75
85
  welcomeContent={welcomeContent}
86
+ newThreadSandbox={newThreadSandbox}
87
+ newThreadControls={newThreadControls}
76
88
  onNavigateHome={() => {
77
89
  changeThread(null)
78
90
  onNewThread?.()
@@ -245,6 +245,8 @@ export function AgentSurface({
245
245
  type="button"
246
246
  size="icon"
247
247
  className="fixed right-5 bottom-5 z-40 size-11 rounded-full shadow-lg max-sm:right-3 max-sm:bottom-3"
248
+ // A phone's shell hides it: it would sit on the tab bar, so the top bar opens the agent.
249
+ data-agent-launcher=""
248
250
  aria-label={launcher}
249
251
  title={launcher}
250
252
  onClick={() => changeMode("dock")}
@@ -268,6 +270,8 @@ export function AgentSurface({
268
270
  <aside
269
271
  data-agent-surface={presentation}
270
272
  data-agent-surface-resizing={resizing ? "" : undefined}
273
+ // On a phone the dock rests on the keyboard, rising into place as it opens (TouchViewport).
274
+ data-keyboard-overlay={presentation === "dock" ? "" : undefined}
271
275
  aria-label={surfaceTitle}
272
276
  aria-hidden={!visible}
273
277
  inert={!visible}