@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
package/dist/index.js CHANGED
@@ -3,10 +3,14 @@ import {
3
3
  AgentContextProvider2,
4
4
  useAgentContext2,
5
5
  useRegisteredAgentContext2,
6
- objectHref,
7
- ARTIFACTS_HREF,
6
+ useSharedGuest2,
8
7
  useCurrentUser2,
9
8
  useSignOut2,
9
+ objectHref,
10
+ ARTIFACTS_HREF,
11
+ artifactHref,
12
+ artifactTargetHref,
13
+ Viewer,
10
14
  useAgentMessages,
11
15
  ArtifactPanelRoot2,
12
16
  AgentApprovalDecisionError2,
@@ -17,6 +21,7 @@ import {
17
21
  ContextPicker2,
18
22
  Composer2,
19
23
  ThreadsButton2,
24
+ HeldArtifactCards,
20
25
  AgentMessageBody2,
21
26
  AgentToolPart2,
22
27
  Transcript2,
@@ -30,19 +35,25 @@ import {
30
35
  AgentChatPage2,
31
36
  SyncButton2,
32
37
  NavItems2,
38
+ isCurrentItem,
33
39
  isExternal,
34
40
  useSectionsEnabled,
35
41
  useSections2,
36
42
  useCurrentSection2,
37
43
  useRegisterSectionNav,
38
- Brand2
39
- } from "./chunk-ytadd0b5.js";
44
+ Brand2,
45
+ appScroller,
46
+ normalizePath,
47
+ isRootPath,
48
+ parentPath,
49
+ historyIndex
50
+ } from "./chunk-001c4gnk.js";
40
51
  import {
41
52
  useAppMessages2
42
- } from "./chunk-kwbw4dyk.js";
53
+ } from "./chunk-ryed2jq8.js";
43
54
  import {
44
55
  defineAgentToolView2
45
- } from "./chunk-q69001w3.js";
56
+ } from "./chunk-694m74s7.js";
46
57
 
47
58
  // src/index.ts
48
59
  import { agentContext } from "@sixb/core/agents/context";
@@ -65,7 +76,9 @@ function AgentPanel({
65
76
  dictation,
66
77
  compact = true,
67
78
  className,
68
- welcomeContent
79
+ welcomeContent,
80
+ newThreadSandbox,
81
+ newThreadControls
69
82
  }) {
70
83
  const registeredContext = useRegisteredAgentContext2();
71
84
  const ambientContext = context === undefined ? registeredContext : context;
@@ -87,6 +100,8 @@ function AgentPanel({
87
100
  composerPlaceholder,
88
101
  dictation,
89
102
  welcomeContent,
103
+ newThreadSandbox,
104
+ newThreadControls,
90
105
  onNavigateHome: () => {
91
106
  changeThread(null);
92
107
  onNewThread?.();
@@ -311,6 +326,7 @@ function AgentSurface({
311
326
  type: "button",
312
327
  size: "icon",
313
328
  className: "fixed right-5 bottom-5 z-40 size-11 rounded-full shadow-lg max-sm:right-3 max-sm:bottom-3",
329
+ "data-agent-launcher": "",
314
330
  "aria-label": launcher,
315
331
  title: launcher,
316
332
  onClick: () => changeMode("dock"),
@@ -329,6 +345,7 @@ function AgentSurface({
329
345
  /* @__PURE__ */ jsxs("aside", {
330
346
  "data-agent-surface": presentation,
331
347
  "data-agent-surface-resizing": resizing ? "" : undefined,
348
+ "data-keyboard-overlay": presentation === "dock" ? "" : undefined,
332
349
  "aria-label": surfaceTitle,
333
350
  "aria-hidden": !visible,
334
351
  inert: !visible,
@@ -406,24 +423,53 @@ function AgentSurface({
406
423
  ]
407
424
  });
408
425
  }
426
+ // src/artifacts/artifact-viewer.tsx
427
+ import { isMobileViewport, useIsMobile } from "@sixb/ui/hooks";
428
+ import { cn as cn3 } from "@sixb/ui/lib/utils";
429
+ import { useState as useState3 } from "react";
430
+ import { useNavigate } from "react-router-dom";
431
+ import { jsx as jsx3 } from "react/jsx-runtime";
432
+ function ArtifactViewer({ artifactId, className }) {
433
+ const navigate = useNavigate();
434
+ const mobile = useIsMobile() || isMobileViewport();
435
+ const [target, setTarget] = useState3({ type: "artifact", artifactId });
436
+ const [shown, setShown] = useState3(artifactId);
437
+ if (shown !== artifactId) {
438
+ setShown(artifactId);
439
+ setTarget({ type: "artifact", artifactId });
440
+ }
441
+ if (mobile)
442
+ return /* @__PURE__ */ jsx3(HeldArtifactCards, {
443
+ artifactIds: [artifactId]
444
+ });
445
+ return /* @__PURE__ */ jsx3("div", {
446
+ className: cn3("flex h-[34rem] min-h-0 flex-col overflow-hidden rounded-xl border border-border bg-background", className),
447
+ children: /* @__PURE__ */ jsx3(Viewer, {
448
+ target,
449
+ onTargetChange: setTarget,
450
+ onOpenReference: (next) => navigate(artifactTargetHref(next)),
451
+ chrome: { fullPageHref: artifactHref(artifactId) }
452
+ })
453
+ });
454
+ }
409
455
  // src/public-env.ts
410
456
  var runtime = typeof window === "undefined" ? undefined : window.__SIXB_RUNTIME__;
411
457
  var publicEnv = Object.freeze(Object.assign(Object.create(null), runtime?.publicEnv));
412
458
  // src/shell/agent-dock.tsx
413
459
  import { getAgentOptions } from "@sixb/client/hooks";
414
460
  import { useQuery } from "@tanstack/react-query";
415
- import { useLocation, useNavigate } from "react-router-dom";
416
- import { jsx as jsx3 } from "react/jsx-runtime";
461
+ import { useLocation, useNavigate as useNavigate2 } from "react-router-dom";
462
+ import { jsx as jsx4 } from "react/jsx-runtime";
417
463
  function AgentDock() {
418
464
  const messages = useAppMessages2().agent;
419
- const navigate = useNavigate();
465
+ const navigate = useNavigate2();
420
466
  const { pathname } = useLocation();
421
467
  const enabled = useSectionsEnabled();
422
468
  const agent = useQuery({ ...getAgentOptions(), enabled, retry: false, staleTime: 5 * 60000 });
423
469
  const conversationPage = pathname === "/" || pathname === THREADS_PATH || pathname.startsWith(`${THREADS_PATH}/`);
424
470
  if (!enabled || !agent.data || conversationPage)
425
471
  return null;
426
- return /* @__PURE__ */ jsx3(AgentSurface, {
472
+ return /* @__PURE__ */ jsx4(AgentSurface, {
427
473
  title: messages.title,
428
474
  launcherLabel: messages.open,
429
475
  defaultMode: "collapsed",
@@ -447,10 +493,711 @@ import {
447
493
  SidebarProvider,
448
494
  SidebarRail,
449
495
  SidebarTrigger,
450
- useSidebar as useSidebar2
496
+ useSidebar as useSidebar5
451
497
  } from "@sixb/ui/components";
452
498
  import { ThemeProvider } from "@sixb/ui/hooks";
499
+ import { cn as cn5 } from "@sixb/ui/lib/utils";
500
+ import { MessageSquareText as MessageSquareText2 } from "lucide-react";
501
+ import { useMemo } from "react";
502
+
503
+ // src/shell/phone/more-sheet.tsx
504
+ import {
505
+ Avatar as Avatar2,
506
+ AvatarFallback as AvatarFallback2,
507
+ AvatarImage as AvatarImage2,
508
+ Drawer,
509
+ DrawerContent,
510
+ DrawerDescription,
511
+ DrawerTitle,
512
+ ThemePicker as ThemePicker2,
513
+ useSidebar as useSidebar2
514
+ } from "@sixb/ui/components";
515
+ import { useOptionalTheme as useOptionalTheme2 } from "@sixb/ui/hooks";
516
+ import { ChevronRight as ChevronRight2, Layers as Layers2, LogOut as LogOut2 } from "lucide-react";
517
+ import { Link, useLocation as useLocation2 } from "react-router-dom";
518
+
519
+ // src/shell/user-menu.tsx
520
+ import {
521
+ Avatar,
522
+ AvatarFallback,
523
+ AvatarImage,
524
+ DropdownMenu,
525
+ DropdownMenuContent,
526
+ DropdownMenuItem,
527
+ DropdownMenuLabel,
528
+ DropdownMenuSeparator,
529
+ DropdownMenuTrigger,
530
+ nextTheme,
531
+ SidebarMenu,
532
+ SidebarMenuButton,
533
+ SidebarMenuItem,
534
+ ThemePicker,
535
+ useSidebar
536
+ } from "@sixb/ui/components";
537
+ import { useOptionalTheme } from "@sixb/ui/hooks";
453
538
  import { cn as cn4 } from "@sixb/ui/lib/utils";
539
+ import { ChevronsUpDown, CircleUserRound, Layers, LogOut, SunMoon } from "lucide-react";
540
+ import { jsx as jsx5, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
541
+ function UserMenuRoot({ children }) {
542
+ const user = useCurrentUser2();
543
+ const signOut = useSignOut2();
544
+ const sections = useSections2();
545
+ const appMessages = useAppMessages2();
546
+ const messages = appMessages.userMenu;
547
+ const themeControls = useOptionalTheme();
548
+ const { isMobile } = useSidebar();
549
+ const items = /* @__PURE__ */ jsxs2(Fragment2, {
550
+ children: [
551
+ /* @__PURE__ */ jsx5(UserMenuItem, {
552
+ href: ARTIFACTS_HREF,
553
+ icon: Layers,
554
+ children: appMessages.artifacts
555
+ }),
556
+ sections.map((section) => /* @__PURE__ */ jsx5(UserMenuItem, {
557
+ href: section.href,
558
+ icon: section.icon,
559
+ children: section.label
560
+ }, section.id)),
561
+ children
562
+ ]
563
+ });
564
+ return /* @__PURE__ */ jsx5(SidebarMenu, {
565
+ children: /* @__PURE__ */ jsx5(SidebarMenuItem, {
566
+ children: /* @__PURE__ */ jsxs2(DropdownMenu, {
567
+ children: [
568
+ /* @__PURE__ */ jsx5(DropdownMenuTrigger, {
569
+ asChild: true,
570
+ children: user ? /* @__PURE__ */ jsxs2(SidebarMenuButton, {
571
+ size: "lg",
572
+ tooltip: displayName(user),
573
+ className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
574
+ children: [
575
+ /* @__PURE__ */ jsx5(Identity, {
576
+ user,
577
+ emailClassName: "text-sidebar-foreground/70"
578
+ }),
579
+ /* @__PURE__ */ jsx5(ChevronsUpDown, {
580
+ className: "ml-auto size-4"
581
+ })
582
+ ]
583
+ }) : /* @__PURE__ */ jsxs2(SidebarMenuButton, {
584
+ tooltip: messages.signInOff,
585
+ className: "text-sidebar-foreground data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
586
+ children: [
587
+ /* @__PURE__ */ jsx5(CircleUserRound, {}),
588
+ /* @__PURE__ */ jsx5("span", {
589
+ children: messages.signInOff
590
+ })
591
+ ]
592
+ })
593
+ }),
594
+ /* @__PURE__ */ jsxs2(DropdownMenuContent, {
595
+ side: isMobile ? "bottom" : "top",
596
+ align: "end",
597
+ sideOffset: 4,
598
+ className: "min-w-56 rounded-lg",
599
+ onCloseAutoFocus: (event) => event.preventDefault(),
600
+ children: [
601
+ user ? /* @__PURE__ */ jsxs2(Fragment2, {
602
+ children: [
603
+ /* @__PURE__ */ jsx5(DropdownMenuLabel, {
604
+ className: "p-0 font-normal",
605
+ children: /* @__PURE__ */ jsx5("div", {
606
+ className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
607
+ children: /* @__PURE__ */ jsx5(Identity, {
608
+ user,
609
+ emailClassName: "text-muted-foreground"
610
+ })
611
+ })
612
+ }),
613
+ /* @__PURE__ */ jsx5(DropdownMenuSeparator, {})
614
+ ]
615
+ }) : null,
616
+ items,
617
+ themeControls ? /* @__PURE__ */ jsx5(DropdownMenuSeparator, {}) : null,
618
+ themeControls ? /* @__PURE__ */ jsxs2(DropdownMenuItem, {
619
+ "aria-keyshortcuts": "ArrowLeft ArrowRight",
620
+ onSelect: (event) => event.preventDefault(),
621
+ onKeyDown: (event) => {
622
+ if (event.key !== "ArrowLeft" && event.key !== "ArrowRight")
623
+ return;
624
+ event.preventDefault();
625
+ themeControls.setTheme(nextTheme(themeControls.theme, event.key === "ArrowRight" ? 1 : -1));
626
+ },
627
+ children: [
628
+ /* @__PURE__ */ jsx5(SunMoon, {}),
629
+ /* @__PURE__ */ jsx5("span", {
630
+ className: "flex-1",
631
+ children: messages.theme
632
+ }),
633
+ /* @__PURE__ */ jsx5(ThemePicker, {
634
+ focusable: false
635
+ })
636
+ ]
637
+ }) : null,
638
+ user ? /* @__PURE__ */ jsxs2(Fragment2, {
639
+ children: [
640
+ /* @__PURE__ */ jsx5(DropdownMenuSeparator, {}),
641
+ /* @__PURE__ */ jsxs2(DropdownMenuItem, {
642
+ onClick: () => {
643
+ signOut().catch((error) => {
644
+ console.error("[SixbApp] Could not sign out:", error);
645
+ });
646
+ },
647
+ children: [
648
+ /* @__PURE__ */ jsx5(LogOut, {}),
649
+ /* @__PURE__ */ jsx5("span", {
650
+ children: messages.signOut
651
+ })
652
+ ]
653
+ })
654
+ ]
655
+ }) : null
656
+ ]
657
+ })
658
+ ]
659
+ })
660
+ })
661
+ });
662
+ }
663
+ function displayName(user) {
664
+ return user.displayName ?? user.email;
665
+ }
666
+ function Identity({
667
+ user,
668
+ emailClassName
669
+ }) {
670
+ const name = displayName(user);
671
+ return /* @__PURE__ */ jsxs2(Fragment2, {
672
+ children: [
673
+ /* @__PURE__ */ jsxs2(Avatar, {
674
+ className: "h-8 w-8 rounded-md",
675
+ children: [
676
+ user.avatarUrl ? /* @__PURE__ */ jsx5(AvatarImage, {
677
+ src: user.avatarUrl,
678
+ alt: name
679
+ }) : null,
680
+ /* @__PURE__ */ jsx5(AvatarFallback, {
681
+ className: "rounded-md text-xs",
682
+ children: initials(name)
683
+ })
684
+ ]
685
+ }),
686
+ /* @__PURE__ */ jsxs2("div", {
687
+ className: "grid flex-1 text-left text-sm leading-tight",
688
+ children: [
689
+ /* @__PURE__ */ jsx5("span", {
690
+ className: "truncate font-semibold",
691
+ children: name
692
+ }),
693
+ user.displayName ? /* @__PURE__ */ jsx5("span", {
694
+ className: cn4("truncate text-xs", emailClassName),
695
+ children: user.email
696
+ }) : null
697
+ ]
698
+ })
699
+ ]
700
+ });
701
+ }
702
+ function initials(name) {
703
+ const parts = name.trim().split(/\s+/).filter(Boolean);
704
+ if (parts.length === 0)
705
+ return "?";
706
+ if (parts.length === 1)
707
+ return parts[0].slice(0, 2).toUpperCase();
708
+ return `${parts[0][0]}${parts[parts.length - 1][0]}`.toUpperCase();
709
+ }
710
+ function UserMenuItem({ href, icon: Icon, onSelect, children }) {
711
+ const content = /* @__PURE__ */ jsxs2(Fragment2, {
712
+ children: [
713
+ Icon ? /* @__PURE__ */ jsx5(Icon, {}) : null,
714
+ /* @__PURE__ */ jsx5("span", {
715
+ children
716
+ })
717
+ ]
718
+ });
719
+ return href ? /* @__PURE__ */ jsx5(DropdownMenuItem, {
720
+ asChild: true,
721
+ onSelect,
722
+ children: /* @__PURE__ */ jsx5("a", {
723
+ href,
724
+ children: content
725
+ })
726
+ }) : /* @__PURE__ */ jsx5(DropdownMenuItem, {
727
+ onSelect,
728
+ children: content
729
+ });
730
+ }
731
+ var UserMenu = Object.assign(UserMenuRoot, { Item: UserMenuItem });
732
+
733
+ // src/shell/phone/more-sheet.tsx
734
+ import { jsx as jsx6, jsxs as jsxs3, Fragment as Fragment3 } from "react/jsx-runtime";
735
+ var ARTIFACTS_HREF2 = "/artifacts";
736
+ function PhoneMoreSheet({ nav, children }) {
737
+ const { openMobile, setOpenMobile } = useSidebar2();
738
+ const { pathname } = useLocation2();
739
+ const sections = useSections2();
740
+ const messages = useAppMessages2();
741
+ const close = () => setOpenMobile(false);
742
+ return /* @__PURE__ */ jsx6(Drawer, {
743
+ open: openMobile,
744
+ onOpenChange: setOpenMobile,
745
+ children: /* @__PURE__ */ jsxs3(DrawerContent, {
746
+ className: "phone-more-sheet",
747
+ children: [
748
+ /* @__PURE__ */ jsx6(DrawerTitle, {
749
+ className: "sr-only",
750
+ children: messages.phone.more
751
+ }),
752
+ /* @__PURE__ */ jsx6(DrawerDescription, {
753
+ className: "sr-only",
754
+ children: messages.phone.moreDescription
755
+ }),
756
+ /* @__PURE__ */ jsxs3("div", {
757
+ className: "phone-more-scroll",
758
+ children: [
759
+ /* @__PURE__ */ jsx6(AccountCard, {}),
760
+ moreGroups(nav).map((group, index) => /* @__PURE__ */ jsx6(PhoneMoreGroup, {
761
+ label: group.label,
762
+ children: group.items.flatMap((item) => [
763
+ /* @__PURE__ */ jsx6(PhoneMoreRow, {
764
+ to: item.href,
765
+ label: item.label,
766
+ icon: item.icon,
767
+ trailing: item.badge,
768
+ current: isCurrentItem(pathname, item),
769
+ onNavigate: close
770
+ }, item.href),
771
+ ...(item.items ?? []).map((child) => /* @__PURE__ */ jsx6(PhoneMoreRow, {
772
+ to: child.href,
773
+ label: child.label,
774
+ trailing: child.badge,
775
+ current: isCurrentItem(pathname, child),
776
+ onNavigate: close,
777
+ nested: true
778
+ }, child.href))
779
+ ])
780
+ }, group.label ?? `group-${index}`)),
781
+ children,
782
+ /* @__PURE__ */ jsxs3(PhoneMoreGroup, {
783
+ label: messages.phone.workspace,
784
+ children: [
785
+ /* @__PURE__ */ jsx6(PhoneMoreRow, {
786
+ to: ARTIFACTS_HREF2,
787
+ label: messages.artifacts,
788
+ icon: Layers2,
789
+ current: isCurrentItem(pathname, { href: ARTIFACTS_HREF2 }),
790
+ onNavigate: close
791
+ }),
792
+ sections.map((section) => /* @__PURE__ */ jsx6(PhoneMoreRow, {
793
+ to: section.href,
794
+ label: section.label,
795
+ icon: section.icon,
796
+ current: isCurrentItem(pathname, { href: section.href }),
797
+ onNavigate: close
798
+ }, section.id))
799
+ ]
800
+ }),
801
+ /* @__PURE__ */ jsx6(SignOut, {})
802
+ ]
803
+ })
804
+ ]
805
+ })
806
+ });
807
+ }
808
+ function PhoneMoreGroup({
809
+ label,
810
+ children
811
+ }) {
812
+ return /* @__PURE__ */ jsxs3("section", {
813
+ className: "phone-more-group",
814
+ children: [
815
+ label ? /* @__PURE__ */ jsx6("h2", {
816
+ children: label
817
+ }) : null,
818
+ /* @__PURE__ */ jsx6("ul", {
819
+ children
820
+ })
821
+ ]
822
+ });
823
+ }
824
+ function PhoneMoreRow({
825
+ to,
826
+ label,
827
+ icon: Icon,
828
+ current,
829
+ trailing,
830
+ nested,
831
+ onNavigate
832
+ }) {
833
+ const { setOpenMobile } = useSidebar2();
834
+ const onClick = onNavigate ?? (() => setOpenMobile(false));
835
+ const content = /* @__PURE__ */ jsxs3(Fragment3, {
836
+ children: [
837
+ Icon ? /* @__PURE__ */ jsx6("span", {
838
+ className: "phone-more-icon",
839
+ "aria-hidden": "true",
840
+ children: /* @__PURE__ */ jsx6(Icon, {})
841
+ }) : null,
842
+ /* @__PURE__ */ jsx6("span", {
843
+ className: "phone-more-label",
844
+ children: label
845
+ }),
846
+ trailing,
847
+ /* @__PURE__ */ jsx6(ChevronRight2, {
848
+ "aria-hidden": "true",
849
+ className: "phone-more-chevron"
850
+ })
851
+ ]
852
+ });
853
+ return /* @__PURE__ */ jsx6("li", {
854
+ children: isExternal(to) ? /* @__PURE__ */ jsx6("a", {
855
+ href: to,
856
+ target: "_blank",
857
+ rel: "noopener noreferrer",
858
+ onClick,
859
+ className: "phone-more-row",
860
+ "data-nested": nested || undefined,
861
+ children: content
862
+ }) : /* @__PURE__ */ jsx6(Link, {
863
+ to,
864
+ onClick,
865
+ "aria-current": current ? "page" : undefined,
866
+ className: "phone-more-row",
867
+ "data-nested": nested || undefined,
868
+ children: content
869
+ })
870
+ });
871
+ }
872
+ function AccountCard() {
873
+ const user = useCurrentUser2();
874
+ const theme = useOptionalTheme2();
875
+ const name = user ? user.displayName ?? user.email : null;
876
+ if (!name && !theme)
877
+ return null;
878
+ return /* @__PURE__ */ jsxs3("section", {
879
+ className: "phone-more-account",
880
+ children: [
881
+ user && name ? /* @__PURE__ */ jsxs3("div", {
882
+ className: "phone-more-identity",
883
+ children: [
884
+ /* @__PURE__ */ jsxs3(Avatar2, {
885
+ className: "size-11",
886
+ children: [
887
+ user.avatarUrl ? /* @__PURE__ */ jsx6(AvatarImage2, {
888
+ src: user.avatarUrl,
889
+ alt: ""
890
+ }) : null,
891
+ /* @__PURE__ */ jsx6(AvatarFallback2, {
892
+ className: "bg-primary text-[13px] font-medium text-primary-foreground",
893
+ children: initials(name)
894
+ })
895
+ ]
896
+ }),
897
+ /* @__PURE__ */ jsxs3("div", {
898
+ className: "min-w-0",
899
+ children: [
900
+ /* @__PURE__ */ jsx6("p", {
901
+ className: "truncate text-[16px] font-semibold text-foreground",
902
+ children: name
903
+ }),
904
+ user.displayName ? /* @__PURE__ */ jsx6("p", {
905
+ className: "truncate text-[13px] text-muted-foreground",
906
+ children: user.email
907
+ }) : null
908
+ ]
909
+ })
910
+ ]
911
+ }) : null,
912
+ theme ? /* @__PURE__ */ jsx6(ThemePicker2, {
913
+ labels: true,
914
+ className: "phone-more-theme"
915
+ }) : null
916
+ ]
917
+ });
918
+ }
919
+ function SignOut() {
920
+ const user = useCurrentUser2();
921
+ const signOut = useSignOut2();
922
+ const messages = useAppMessages2();
923
+ if (!user)
924
+ return null;
925
+ return /* @__PURE__ */ jsxs3("button", {
926
+ type: "button",
927
+ className: "phone-more-signout",
928
+ onClick: () => {
929
+ signOut().catch((error) => {
930
+ console.error("[SixbApp] Could not sign out:", error);
931
+ });
932
+ },
933
+ children: [
934
+ /* @__PURE__ */ jsx6(LogOut2, {
935
+ "aria-hidden": "true",
936
+ className: "size-[18px]",
937
+ strokeWidth: 1.8
938
+ }),
939
+ messages.userMenu.signOut
940
+ ]
941
+ });
942
+ }
943
+ function moreGroups(nav) {
944
+ const groups = [];
945
+ for (const entry of nav) {
946
+ if ("group" in entry) {
947
+ const items = entry.items.filter((item) => !item.tab);
948
+ if (items.length)
949
+ groups.push({ label: entry.group, items });
950
+ } else if (!entry.tab) {
951
+ const last = groups.at(-1);
952
+ if (last && last.label === undefined)
953
+ last.items.push(entry);
954
+ else
955
+ groups.push({ items: [entry] });
956
+ }
957
+ }
958
+ return groups;
959
+ }
960
+
961
+ // src/shell/phone/tab-bar.tsx
962
+ import { useSidebar as useSidebar3 } from "@sixb/ui/components";
963
+ import { Ellipsis } from "lucide-react";
964
+ import { useEffect as useEffect2 } from "react";
965
+ import { useLocation as useLocation3, useNavigate as useNavigate3 } from "react-router-dom";
966
+ import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
967
+ var lastPathByTab = new Map;
968
+ function PhoneTabBar({ items }) {
969
+ const location = useLocation3();
970
+ const navigate = useNavigate3();
971
+ const { isMobile, openMobile, setOpenMobile } = useSidebar3();
972
+ const messages = useAppMessages2();
973
+ const path = normalizePath(location.pathname);
974
+ const tabs = items.filter((item) => !isExternal(item.href)).slice(0, 4);
975
+ const current = tabs.find((item) => isCurrentItem(path, item))?.href ?? "";
976
+ useEffect2(() => {
977
+ lastPathByTab.set(current, location.pathname + location.search);
978
+ }, [current, location.pathname, location.search]);
979
+ const select = (tab) => {
980
+ if (tab !== current) {
981
+ navigate(lastPathByTab.get(tab) ?? tab);
982
+ return;
983
+ }
984
+ if (path !== tab) {
985
+ lastPathByTab.delete(tab);
986
+ navigate(tab);
987
+ return;
988
+ }
989
+ appScroller()?.scrollTo({ top: 0, behavior: "smooth" });
990
+ };
991
+ if (!isMobile)
992
+ return null;
993
+ const moreActive = current === "" || openMobile;
994
+ const index = moreActive ? tabs.length : tabs.findIndex(({ href }) => href === current);
995
+ return /* @__PURE__ */ jsxs4("nav", {
996
+ className: "phone-tab-bar",
997
+ "aria-label": messages.phone.tabs,
998
+ style: { "--tab-index": index, "--tab-count": tabs.length + 1 },
999
+ children: [
1000
+ /* @__PURE__ */ jsx7("span", {
1001
+ className: "phone-tab-lens",
1002
+ "aria-hidden": "true"
1003
+ }),
1004
+ tabs.map(({ href, label, icon: Icon }) => {
1005
+ const active = href === current && !openMobile;
1006
+ return /* @__PURE__ */ jsx7("button", {
1007
+ type: "button",
1008
+ onClick: () => select(href),
1009
+ "aria-label": label,
1010
+ "aria-current": active ? "page" : undefined,
1011
+ className: "phone-tab",
1012
+ children: Icon ? /* @__PURE__ */ jsx7(Icon, {
1013
+ className: "phone-tab-icon"
1014
+ }) : /* @__PURE__ */ jsx7("span", {
1015
+ className: "phone-tab-text",
1016
+ children: label
1017
+ })
1018
+ }, href);
1019
+ }),
1020
+ /* @__PURE__ */ jsx7("button", {
1021
+ type: "button",
1022
+ onClick: () => setOpenMobile(!openMobile),
1023
+ "aria-label": messages.phone.more,
1024
+ "aria-current": moreActive ? "page" : undefined,
1025
+ "aria-haspopup": "dialog",
1026
+ "aria-expanded": openMobile,
1027
+ className: "phone-tab",
1028
+ children: /* @__PURE__ */ jsx7(Ellipsis, {
1029
+ "aria-hidden": "true"
1030
+ })
1031
+ })
1032
+ ]
1033
+ });
1034
+ }
1035
+
1036
+ // src/shell/phone/top-bar.tsx
1037
+ import { useSidebar as useSidebar4 } from "@sixb/ui/components";
1038
+ import { ChevronLeft } from "lucide-react";
1039
+ import { useEffect as useEffect3, useState as useState4, useSyncExternalStore } from "react";
1040
+ import { createPortal } from "react-dom";
1041
+ import { useLocation as useLocation5 } from "react-router-dom";
1042
+
1043
+ // src/shell/phone/back.ts
1044
+ import { useCallback as useCallback3 } from "react";
1045
+ import { useLocation as useLocation4, useNavigate as useNavigate4 } from "react-router-dom";
1046
+ function useBack() {
1047
+ const navigate = useNavigate4();
1048
+ const { pathname } = useLocation4();
1049
+ return useCallback3(() => {
1050
+ if (historyIndex() > 0)
1051
+ navigate(-1);
1052
+ else
1053
+ navigate(parentPath(pathname), { replace: true });
1054
+ }, [navigate, pathname]);
1055
+ }
1056
+
1057
+ // src/shell/phone/top-bar.tsx
1058
+ import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
1059
+ function PhoneTopBar(props) {
1060
+ const { isMobile } = useSidebar4();
1061
+ return isMobile ? /* @__PURE__ */ jsx8(TopBar, {
1062
+ ...props
1063
+ }) : null;
1064
+ }
1065
+ function TopBar({ trailing, title = true, raised = false }) {
1066
+ const location = useLocation5();
1067
+ const back = useBack();
1068
+ const messages = useAppMessages2();
1069
+ const path = normalizePath(location.pathname);
1070
+ const heading = usePageHeading(path);
1071
+ const scrolled = useScrolled(path);
1072
+ const text = title ? heading?.text ?? "" : "";
1073
+ return /* @__PURE__ */ jsx8("header", {
1074
+ className: "phone-top-bar",
1075
+ "data-scrolled": scrolled || undefined,
1076
+ "data-raised": raised || undefined,
1077
+ children: /* @__PURE__ */ jsxs5("div", {
1078
+ className: "phone-top-bar-row",
1079
+ children: [
1080
+ /* @__PURE__ */ jsx8("div", {
1081
+ className: "phone-top-bar-leading",
1082
+ children: isRootPath(path) ? null : /* @__PURE__ */ jsx8("button", {
1083
+ type: "button",
1084
+ onClick: back,
1085
+ "aria-label": messages.phone.back,
1086
+ className: "phone-back phone-glass",
1087
+ children: /* @__PURE__ */ jsx8(ChevronLeft, {
1088
+ "aria-hidden": "true",
1089
+ strokeWidth: 2.2
1090
+ })
1091
+ })
1092
+ }),
1093
+ /* @__PURE__ */ jsx8("div", {
1094
+ className: "phone-top-bar-title",
1095
+ "data-visible": text !== "" && heading?.hidden || undefined,
1096
+ "aria-hidden": "true",
1097
+ children: text
1098
+ }),
1099
+ /* @__PURE__ */ jsxs5("div", {
1100
+ className: "phone-top-bar-trailing",
1101
+ children: [
1102
+ /* @__PURE__ */ jsx8("div", {
1103
+ ref: registerSlot,
1104
+ className: "phone-bar-slot"
1105
+ }),
1106
+ trailing ? /* @__PURE__ */ jsx8("div", {
1107
+ className: "phone-bar-group phone-glass",
1108
+ children: trailing
1109
+ }) : null
1110
+ ]
1111
+ })
1112
+ ]
1113
+ })
1114
+ });
1115
+ }
1116
+ var slot = null;
1117
+ var listeners = new Set;
1118
+ function registerSlot(element) {
1119
+ if (element === slot)
1120
+ return;
1121
+ slot = element;
1122
+ for (const listener of listeners)
1123
+ listener();
1124
+ }
1125
+ function PhoneBarActions({ children }) {
1126
+ const target = useSyncExternalStore((listener) => {
1127
+ listeners.add(listener);
1128
+ return () => listeners.delete(listener);
1129
+ }, () => slot, () => null);
1130
+ return target ? createPortal(children, target) : null;
1131
+ }
1132
+ function usePageHeading(path) {
1133
+ const [heading, setHeading] = useState4(null);
1134
+ useEffect3(() => {
1135
+ const scroller = appScroller();
1136
+ const bar = document.querySelector(".phone-top-bar");
1137
+ if (!scroller)
1138
+ return;
1139
+ let element = null;
1140
+ let observer = null;
1141
+ let hidden = false;
1142
+ let frame = 0;
1143
+ const publish = () => {
1144
+ const next = element ? { text: headingText(element), hidden } : null;
1145
+ setHeading((current) => current?.text === next?.text && current?.hidden === next?.hidden ? current : next);
1146
+ };
1147
+ const attach = () => {
1148
+ const found = scroller.querySelector("h1");
1149
+ if (found !== element) {
1150
+ observer?.disconnect();
1151
+ element = found;
1152
+ hidden = false;
1153
+ if (element) {
1154
+ const inset = bar?.offsetHeight ?? 0;
1155
+ observer = new IntersectionObserver(([entry]) => {
1156
+ hidden = !entry.isIntersecting && entry.boundingClientRect.top < inset;
1157
+ publish();
1158
+ }, { root: scroller, rootMargin: `-${inset}px 0px 0px 0px` });
1159
+ observer.observe(element);
1160
+ }
1161
+ }
1162
+ publish();
1163
+ };
1164
+ attach();
1165
+ const mutations = new MutationObserver(() => {
1166
+ cancelAnimationFrame(frame);
1167
+ frame = requestAnimationFrame(attach);
1168
+ });
1169
+ mutations.observe(scroller, { childList: true, subtree: true, characterData: true });
1170
+ return () => {
1171
+ cancelAnimationFrame(frame);
1172
+ mutations.disconnect();
1173
+ observer?.disconnect();
1174
+ };
1175
+ }, [path]);
1176
+ return heading;
1177
+ }
1178
+ function useScrolled(path) {
1179
+ const [scrolled, setScrolled] = useState4(false);
1180
+ useEffect3(() => {
1181
+ const scroller = appScroller();
1182
+ if (!scroller)
1183
+ return;
1184
+ setScrolled(scroller.scrollTop > 1);
1185
+ const onScroll = (event) => {
1186
+ const target = event.target;
1187
+ if (!(target instanceof HTMLElement))
1188
+ return;
1189
+ if (target !== scroller && target.scrollHeight <= target.clientHeight)
1190
+ return;
1191
+ setScrolled(target.scrollTop > 1);
1192
+ };
1193
+ scroller.addEventListener("scroll", onScroll, { capture: true, passive: true });
1194
+ return () => scroller.removeEventListener("scroll", onScroll, { capture: true });
1195
+ }, [path]);
1196
+ return scrolled;
1197
+ }
1198
+ function headingText(heading) {
1199
+ return (heading.textContent ?? "").replace(/\s+/g, " ").trim();
1200
+ }
454
1201
 
455
1202
  // src/shell/search-command.tsx
456
1203
  import { searchObjectsOptions } from "@sixb/client/hooks";
@@ -462,23 +1209,23 @@ import {
462
1209
  CommandItem,
463
1210
  CommandList,
464
1211
  Kbd,
465
- SidebarMenu,
466
- SidebarMenuButton,
467
- SidebarMenuItem
1212
+ SidebarMenu as SidebarMenu2,
1213
+ SidebarMenuButton as SidebarMenuButton2,
1214
+ SidebarMenuItem as SidebarMenuItem2
468
1215
  } from "@sixb/ui/components";
469
1216
  import { keepPreviousData, useQuery as useQuery2 } from "@tanstack/react-query";
470
- import { Box, Layers, Search } from "lucide-react";
471
- import { useDeferredValue, useEffect as useEffect2, useState as useState3 } from "react";
472
- import { useNavigate as useNavigate2 } from "react-router-dom";
473
- import { jsx as jsx4, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
474
- function SearchCommand({ pages = [] }) {
1217
+ import { Box, Layers as Layers3, Search } from "lucide-react";
1218
+ import { useDeferredValue, useEffect as useEffect4, useState as useState5 } from "react";
1219
+ import { useNavigate as useNavigate5 } from "react-router-dom";
1220
+ import { jsx as jsx9, jsxs as jsxs6, Fragment as Fragment4 } from "react/jsx-runtime";
1221
+ function SearchCommand({ pages = [], placement = "sidebar" }) {
475
1222
  const appMessages = useAppMessages2();
476
1223
  const messages = appMessages.search;
477
- const navigate = useNavigate2();
1224
+ const navigate = useNavigate5();
478
1225
  const sections = useSections2();
479
1226
  const enabled = useSectionsEnabled();
480
- const [open, setOpen] = useState3(false);
481
- const [query, setQuery] = useState3("");
1227
+ const [open, setOpen] = useState5(false);
1228
+ const [query, setQuery] = useState5("");
482
1229
  const term = useDeferredValue(query.trim());
483
1230
  const searching = term.length > 1;
484
1231
  const objects = useQuery2({
@@ -487,7 +1234,7 @@ function SearchCommand({ pages = [] }) {
487
1234
  placeholderData: keepPreviousData,
488
1235
  retry: false
489
1236
  });
490
- useEffect2(() => {
1237
+ useEffect4(() => {
491
1238
  if (!enabled)
492
1239
  return;
493
1240
  const toggle = (event) => {
@@ -511,22 +1258,33 @@ function SearchCommand({ pages = [] }) {
511
1258
  return null;
512
1259
  const appPages = [
513
1260
  ...pages.flatMap((entry) => ("group" in entry) ? entry.items : [entry]),
514
- { label: appMessages.artifacts, href: ARTIFACTS_HREF, icon: Layers }
1261
+ { label: appMessages.artifacts, href: ARTIFACTS_HREF, icon: Layers3 }
515
1262
  ];
516
- return /* @__PURE__ */ jsxs2(Fragment2, {
1263
+ const toolbar = placement === "toolbar";
1264
+ return /* @__PURE__ */ jsxs6(Fragment4, {
517
1265
  children: [
518
- /* @__PURE__ */ jsx4(SidebarMenu, {
519
- children: /* @__PURE__ */ jsx4(SidebarMenuItem, {
520
- children: /* @__PURE__ */ jsxs2(SidebarMenuButton, {
1266
+ toolbar ? /* @__PURE__ */ jsx9("button", {
1267
+ type: "button",
1268
+ onClick: () => setOpen(true),
1269
+ "aria-label": messages.label,
1270
+ className: "phone-bar-action",
1271
+ children: /* @__PURE__ */ jsx9(Search, {
1272
+ className: "size-[21px]",
1273
+ strokeWidth: 1.9,
1274
+ "aria-hidden": "true"
1275
+ })
1276
+ }) : /* @__PURE__ */ jsx9(SidebarMenu2, {
1277
+ children: /* @__PURE__ */ jsx9(SidebarMenuItem2, {
1278
+ children: /* @__PURE__ */ jsxs6(SidebarMenuButton2, {
521
1279
  tooltip: messages.label,
522
1280
  onClick: () => setOpen(true),
523
1281
  className: "border border-sidebar-border text-sidebar-foreground/80 hover:border-foreground/15",
524
1282
  children: [
525
- /* @__PURE__ */ jsx4(Search, {}),
526
- /* @__PURE__ */ jsx4("span", {
1283
+ /* @__PURE__ */ jsx9(Search, {}),
1284
+ /* @__PURE__ */ jsx9("span", {
527
1285
  children: messages.label
528
1286
  }),
529
- /* @__PURE__ */ jsx4(Kbd, {
1287
+ /* @__PURE__ */ jsx9(Kbd, {
530
1288
  className: "ml-auto group-data-[collapsible=icon]:hidden",
531
1289
  children: "\u2318K"
532
1290
  })
@@ -534,7 +1292,7 @@ function SearchCommand({ pages = [] }) {
534
1292
  })
535
1293
  })
536
1294
  }),
537
- /* @__PURE__ */ jsxs2(CommandDialog, {
1295
+ /* @__PURE__ */ jsxs6(CommandDialog, {
538
1296
  open,
539
1297
  onOpenChange: (next) => {
540
1298
  setOpen(next);
@@ -543,47 +1301,48 @@ function SearchCommand({ pages = [] }) {
543
1301
  },
544
1302
  title: messages.label,
545
1303
  className: "max-w-xl rounded-xl",
1304
+ fullscreen: toolbar,
546
1305
  children: [
547
- /* @__PURE__ */ jsx4(CommandInput, {
1306
+ /* @__PURE__ */ jsx9(CommandInput, {
548
1307
  value: query,
549
1308
  onValueChange: setQuery,
550
1309
  placeholder: messages.placeholder
551
1310
  }),
552
- /* @__PURE__ */ jsxs2(CommandList, {
1311
+ /* @__PURE__ */ jsxs6(CommandList, {
553
1312
  className: "max-h-[min(28rem,70vh)]",
554
1313
  children: [
555
- /* @__PURE__ */ jsx4(CommandEmpty, {
1314
+ /* @__PURE__ */ jsx9(CommandEmpty, {
556
1315
  children: objects.isFetching ? messages.searching : messages.empty
557
1316
  }),
558
- searching && objects.data && objects.data.items.length > 0 ? /* @__PURE__ */ jsx4(CommandGroup, {
1317
+ searching && objects.data && objects.data.items.length > 0 ? /* @__PURE__ */ jsx9(CommandGroup, {
559
1318
  heading: messages.objects,
560
- children: objects.data.items.map((item) => /* @__PURE__ */ jsxs2(CommandItem, {
1319
+ children: objects.data.items.map((item) => /* @__PURE__ */ jsxs6(CommandItem, {
561
1320
  value: `object:${item.ref.objectTypeId}:${item.ref.primaryId}`,
562
1321
  keywords: [item.label, query],
563
1322
  onSelect: () => go(objectHref(item.ref.objectTypeId, item.ref.primaryId)),
564
1323
  children: [
565
- /* @__PURE__ */ jsx4(Box, {}),
566
- /* @__PURE__ */ jsx4("span", {
1324
+ /* @__PURE__ */ jsx9(Box, {}),
1325
+ /* @__PURE__ */ jsx9("span", {
567
1326
  className: "min-w-0 flex-1 truncate",
568
1327
  children: item.label
569
1328
  }),
570
- /* @__PURE__ */ jsx4("span", {
1329
+ /* @__PURE__ */ jsx9("span", {
571
1330
  className: "text-xs text-muted-foreground",
572
1331
  children: item.ref.objectTypeId
573
1332
  })
574
1333
  ]
575
1334
  }, `${item.ref.objectTypeId}:${item.ref.primaryId}`))
576
1335
  }) : null,
577
- appPages.length > 0 ? /* @__PURE__ */ jsx4(CommandGroup, {
1336
+ appPages.length > 0 ? /* @__PURE__ */ jsx9(CommandGroup, {
578
1337
  heading: messages.pages,
579
- children: appPages.map((page) => /* @__PURE__ */ jsx4(PageItem, {
1338
+ children: appPages.map((page) => /* @__PURE__ */ jsx9(PageItem, {
580
1339
  page,
581
1340
  onSelect: go
582
1341
  }, page.href))
583
1342
  }) : null,
584
- sections.map((section) => /* @__PURE__ */ jsx4(CommandGroup, {
1343
+ sections.map((section) => /* @__PURE__ */ jsx9(CommandGroup, {
585
1344
  heading: section.label,
586
- children: section.pages.flatMap((entry) => ("group" in entry) ? entry.items : [entry]).map((page) => /* @__PURE__ */ jsx4(PageItem, {
1345
+ children: section.pages.flatMap((entry) => ("group" in entry) ? entry.items : [entry]).map((page) => /* @__PURE__ */ jsx9(PageItem, {
587
1346
  page,
588
1347
  keywords: [section.label],
589
1348
  onSelect: go
@@ -601,13 +1360,13 @@ function PageItem({
601
1360
  keywords,
602
1361
  onSelect
603
1362
  }) {
604
- return /* @__PURE__ */ jsxs2(CommandItem, {
1363
+ return /* @__PURE__ */ jsxs6(CommandItem, {
605
1364
  value: `page:${page.href}`,
606
1365
  keywords: [page.label, ...keywords ?? []],
607
1366
  onSelect: () => onSelect(page.href),
608
1367
  children: [
609
- page.icon ? /* @__PURE__ */ jsx4(page.icon, {}) : null,
610
- /* @__PURE__ */ jsx4("span", {
1368
+ page.icon ? /* @__PURE__ */ jsx9(page.icon, {}) : null,
1369
+ /* @__PURE__ */ jsx9("span", {
611
1370
  children: page.label
612
1371
  })
613
1372
  ]
@@ -618,12 +1377,12 @@ function PageItem({
618
1377
  import {
619
1378
  SidebarGroup,
620
1379
  SidebarGroupContent,
621
- SidebarMenu as SidebarMenu2,
622
- SidebarMenuButton as SidebarMenuButton2,
623
- SidebarMenuItem as SidebarMenuItem2
1380
+ SidebarMenu as SidebarMenu3,
1381
+ SidebarMenuButton as SidebarMenuButton3,
1382
+ SidebarMenuItem as SidebarMenuItem3
624
1383
  } from "@sixb/ui/components";
625
- import { ChevronLeft } from "lucide-react";
626
- import { Link } from "react-router-dom";
1384
+ import { ChevronLeft as ChevronLeft2 } from "lucide-react";
1385
+ import { Link as Link2 } from "react-router-dom";
627
1386
 
628
1387
  // src/sections/counts.ts
629
1388
  import {
@@ -669,7 +1428,7 @@ function usePageCounts(section) {
669
1428
  }
670
1429
 
671
1430
  // src/shell/section-nav.tsx
672
- import { jsx as jsx5, jsxs as jsxs3, Fragment as Fragment3 } from "react/jsx-runtime";
1431
+ import { jsx as jsx10, jsxs as jsxs7, Fragment as Fragment5 } from "react/jsx-runtime";
673
1432
  function SectionNav({ fallback = null, backHref = "/" }) {
674
1433
  useRegisterSectionNav();
675
1434
  const messages = useAppMessages2().sections;
@@ -679,20 +1438,20 @@ function SectionNav({ fallback = null, backHref = "/" }) {
679
1438
  return fallback;
680
1439
  const counted = (item) => counts[item.href] === undefined ? item : { ...item, badge: counts[item.href] };
681
1440
  const pages = section.pages.map((entry) => ("group" in entry) ? { ...entry, items: entry.items.map(counted) } : counted(entry));
682
- return /* @__PURE__ */ jsxs3(Fragment3, {
1441
+ return /* @__PURE__ */ jsxs7(Fragment5, {
683
1442
  children: [
684
- /* @__PURE__ */ jsx5(SidebarGroup, {
685
- children: /* @__PURE__ */ jsx5(SidebarGroupContent, {
686
- children: /* @__PURE__ */ jsx5(SidebarMenu2, {
687
- children: /* @__PURE__ */ jsx5(SidebarMenuItem2, {
688
- children: /* @__PURE__ */ jsx5(SidebarMenuButton2, {
1443
+ /* @__PURE__ */ jsx10(SidebarGroup, {
1444
+ children: /* @__PURE__ */ jsx10(SidebarGroupContent, {
1445
+ children: /* @__PURE__ */ jsx10(SidebarMenu3, {
1446
+ children: /* @__PURE__ */ jsx10(SidebarMenuItem3, {
1447
+ children: /* @__PURE__ */ jsx10(SidebarMenuButton3, {
689
1448
  asChild: true,
690
1449
  tooltip: messages.back,
691
- children: /* @__PURE__ */ jsxs3(Link, {
1450
+ children: /* @__PURE__ */ jsxs7(Link2, {
692
1451
  to: backHref,
693
1452
  children: [
694
- /* @__PURE__ */ jsx5(ChevronLeft, {}),
695
- /* @__PURE__ */ jsx5("span", {
1453
+ /* @__PURE__ */ jsx10(ChevronLeft2, {}),
1454
+ /* @__PURE__ */ jsx10("span", {
696
1455
  className: "font-medium",
697
1456
  children: section.label
698
1457
  })
@@ -703,233 +1462,19 @@ function SectionNav({ fallback = null, backHref = "/" }) {
703
1462
  })
704
1463
  })
705
1464
  }),
706
- /* @__PURE__ */ jsx5(NavItems2, {
1465
+ /* @__PURE__ */ jsx10(NavItems2, {
707
1466
  items: pages
708
1467
  })
709
1468
  ]
710
1469
  });
711
1470
  }
712
1471
 
713
- // src/shell/user-menu.tsx
714
- import {
715
- Avatar,
716
- AvatarFallback,
717
- AvatarImage,
718
- DropdownMenu,
719
- DropdownMenuContent,
720
- DropdownMenuItem,
721
- DropdownMenuLabel,
722
- DropdownMenuSeparator,
723
- DropdownMenuTrigger,
724
- nextTheme,
725
- SidebarMenu as SidebarMenu3,
726
- SidebarMenuButton as SidebarMenuButton3,
727
- SidebarMenuItem as SidebarMenuItem3,
728
- ThemePicker,
729
- useSidebar
730
- } from "@sixb/ui/components";
731
- import { useOptionalTheme } from "@sixb/ui/hooks";
732
- import { cn as cn3 } from "@sixb/ui/lib/utils";
733
- import { ChevronsUpDown, CircleUserRound, Layers as Layers2, LogOut, SunMoon } from "lucide-react";
734
- import { jsx as jsx6, jsxs as jsxs4, Fragment as Fragment4 } from "react/jsx-runtime";
735
- function UserMenuRoot({ children }) {
736
- const user = useCurrentUser2();
737
- const signOut = useSignOut2();
738
- const sections = useSections2();
739
- const appMessages = useAppMessages2();
740
- const messages = appMessages.userMenu;
741
- const themeControls = useOptionalTheme();
742
- const { isMobile } = useSidebar();
743
- const items = /* @__PURE__ */ jsxs4(Fragment4, {
744
- children: [
745
- /* @__PURE__ */ jsx6(UserMenuItem, {
746
- href: ARTIFACTS_HREF,
747
- icon: Layers2,
748
- children: appMessages.artifacts
749
- }),
750
- sections.map((section) => /* @__PURE__ */ jsx6(UserMenuItem, {
751
- href: section.href,
752
- icon: section.icon,
753
- children: section.label
754
- }, section.id)),
755
- children
756
- ]
757
- });
758
- return /* @__PURE__ */ jsx6(SidebarMenu3, {
759
- children: /* @__PURE__ */ jsx6(SidebarMenuItem3, {
760
- children: /* @__PURE__ */ jsxs4(DropdownMenu, {
761
- children: [
762
- /* @__PURE__ */ jsx6(DropdownMenuTrigger, {
763
- asChild: true,
764
- children: user ? /* @__PURE__ */ jsxs4(SidebarMenuButton3, {
765
- size: "lg",
766
- tooltip: displayName(user),
767
- className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
768
- children: [
769
- /* @__PURE__ */ jsx6(Identity, {
770
- user,
771
- emailClassName: "text-sidebar-foreground/70"
772
- }),
773
- /* @__PURE__ */ jsx6(ChevronsUpDown, {
774
- className: "ml-auto size-4"
775
- })
776
- ]
777
- }) : /* @__PURE__ */ jsxs4(SidebarMenuButton3, {
778
- tooltip: messages.signInOff,
779
- className: "text-sidebar-foreground data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
780
- children: [
781
- /* @__PURE__ */ jsx6(CircleUserRound, {}),
782
- /* @__PURE__ */ jsx6("span", {
783
- children: messages.signInOff
784
- })
785
- ]
786
- })
787
- }),
788
- /* @__PURE__ */ jsxs4(DropdownMenuContent, {
789
- side: isMobile ? "bottom" : "top",
790
- align: "end",
791
- sideOffset: 4,
792
- className: "min-w-56 rounded-lg",
793
- onCloseAutoFocus: (event) => event.preventDefault(),
794
- children: [
795
- user ? /* @__PURE__ */ jsxs4(Fragment4, {
796
- children: [
797
- /* @__PURE__ */ jsx6(DropdownMenuLabel, {
798
- className: "p-0 font-normal",
799
- children: /* @__PURE__ */ jsx6("div", {
800
- className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
801
- children: /* @__PURE__ */ jsx6(Identity, {
802
- user,
803
- emailClassName: "text-muted-foreground"
804
- })
805
- })
806
- }),
807
- /* @__PURE__ */ jsx6(DropdownMenuSeparator, {})
808
- ]
809
- }) : null,
810
- items,
811
- themeControls ? /* @__PURE__ */ jsx6(DropdownMenuSeparator, {}) : null,
812
- themeControls ? /* @__PURE__ */ jsxs4(DropdownMenuItem, {
813
- "aria-keyshortcuts": "ArrowLeft ArrowRight",
814
- onSelect: (event) => event.preventDefault(),
815
- onKeyDown: (event) => {
816
- if (event.key !== "ArrowLeft" && event.key !== "ArrowRight")
817
- return;
818
- event.preventDefault();
819
- themeControls.setTheme(nextTheme(themeControls.theme, event.key === "ArrowRight" ? 1 : -1));
820
- },
821
- children: [
822
- /* @__PURE__ */ jsx6(SunMoon, {}),
823
- /* @__PURE__ */ jsx6("span", {
824
- className: "flex-1",
825
- children: messages.theme
826
- }),
827
- /* @__PURE__ */ jsx6(ThemePicker, {
828
- focusable: false
829
- })
830
- ]
831
- }) : null,
832
- user ? /* @__PURE__ */ jsxs4(Fragment4, {
833
- children: [
834
- /* @__PURE__ */ jsx6(DropdownMenuSeparator, {}),
835
- /* @__PURE__ */ jsxs4(DropdownMenuItem, {
836
- onClick: () => {
837
- signOut().catch((error) => {
838
- console.error("[SixbApp] Could not sign out:", error);
839
- });
840
- },
841
- children: [
842
- /* @__PURE__ */ jsx6(LogOut, {}),
843
- /* @__PURE__ */ jsx6("span", {
844
- children: messages.signOut
845
- })
846
- ]
847
- })
848
- ]
849
- }) : null
850
- ]
851
- })
852
- ]
853
- })
854
- })
855
- });
856
- }
857
- function displayName(user) {
858
- return user.displayName ?? user.email;
859
- }
860
- function Identity({
861
- user,
862
- emailClassName
863
- }) {
864
- const name = displayName(user);
865
- return /* @__PURE__ */ jsxs4(Fragment4, {
866
- children: [
867
- /* @__PURE__ */ jsxs4(Avatar, {
868
- className: "h-8 w-8 rounded-md",
869
- children: [
870
- user.avatarUrl ? /* @__PURE__ */ jsx6(AvatarImage, {
871
- src: user.avatarUrl,
872
- alt: name
873
- }) : null,
874
- /* @__PURE__ */ jsx6(AvatarFallback, {
875
- className: "rounded-md text-xs",
876
- children: initials(name)
877
- })
878
- ]
879
- }),
880
- /* @__PURE__ */ jsxs4("div", {
881
- className: "grid flex-1 text-left text-sm leading-tight",
882
- children: [
883
- /* @__PURE__ */ jsx6("span", {
884
- className: "truncate font-semibold",
885
- children: name
886
- }),
887
- user.displayName ? /* @__PURE__ */ jsx6("span", {
888
- className: cn3("truncate text-xs", emailClassName),
889
- children: user.email
890
- }) : null
891
- ]
892
- })
893
- ]
894
- });
895
- }
896
- function initials(name) {
897
- const parts = name.trim().split(/\s+/).filter(Boolean);
898
- if (parts.length === 0)
899
- return "?";
900
- if (parts.length === 1)
901
- return parts[0].slice(0, 2).toUpperCase();
902
- return `${parts[0][0]}${parts[parts.length - 1][0]}`.toUpperCase();
903
- }
904
- function UserMenuItem({ href, icon: Icon, onSelect, children }) {
905
- const content = /* @__PURE__ */ jsxs4(Fragment4, {
906
- children: [
907
- Icon ? /* @__PURE__ */ jsx6(Icon, {}) : null,
908
- /* @__PURE__ */ jsx6("span", {
909
- children
910
- })
911
- ]
912
- });
913
- return href ? /* @__PURE__ */ jsx6(DropdownMenuItem, {
914
- asChild: true,
915
- onSelect,
916
- children: /* @__PURE__ */ jsx6("a", {
917
- href,
918
- children: content
919
- })
920
- }) : /* @__PURE__ */ jsx6(DropdownMenuItem, {
921
- onSelect,
922
- children: content
923
- });
924
- }
925
- var UserMenu = Object.assign(UserMenuRoot, { Item: UserMenuItem });
926
-
927
1472
  // src/shell/app-shell.tsx
928
- import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
1473
+ import { jsx as jsx11, jsxs as jsxs8, Fragment as Fragment6 } from "react/jsx-runtime";
929
1474
  function AppShellProvider({ className, children, ...sidebarState }) {
930
- return /* @__PURE__ */ jsx7(ThemeProvider, {
931
- children: /* @__PURE__ */ jsx7(SidebarProvider, {
932
- className: cn4("h-dvh overflow-hidden", className),
1475
+ return /* @__PURE__ */ jsx11(ThemeProvider, {
1476
+ children: /* @__PURE__ */ jsx11(SidebarProvider, {
1477
+ className: cn5("h-(--viewport-height) overflow-hidden", className),
933
1478
  ...sidebarState,
934
1479
  children
935
1480
  })
@@ -948,77 +1493,144 @@ function AppShell({
948
1493
  defaultOpen,
949
1494
  children
950
1495
  }) {
951
- return /* @__PURE__ */ jsxs5(AppShellProvider, {
1496
+ return /* @__PURE__ */ jsx11(AppShellProvider, {
952
1497
  defaultOpen,
1498
+ children: /* @__PURE__ */ jsx11(AppShellFrame, {
1499
+ nav,
1500
+ brand,
1501
+ header,
1502
+ footer,
1503
+ userMenu,
1504
+ agent,
1505
+ variant,
1506
+ collapsible,
1507
+ side,
1508
+ children
1509
+ })
1510
+ });
1511
+ }
1512
+ function AppShellFrame({
1513
+ nav,
1514
+ brand,
1515
+ header,
1516
+ footer,
1517
+ userMenu,
1518
+ agent,
1519
+ variant,
1520
+ collapsible,
1521
+ side,
1522
+ children
1523
+ }) {
1524
+ const { isMobile } = useSidebar5();
1525
+ const appMessages = useAppMessages2();
1526
+ const places = useMemo(() => isNavData(nav) ? withPhoneTabs(nav) : null, [nav]);
1527
+ const phone = isMobile && places !== null;
1528
+ return /* @__PURE__ */ jsxs8(Fragment6, {
953
1529
  children: [
954
- /* @__PURE__ */ jsxs5(Sidebar, {
1530
+ phone ? /* @__PURE__ */ jsx11(PhoneMoreSheet, {
1531
+ nav: places.nav
1532
+ }) : /* @__PURE__ */ jsxs8(Sidebar, {
955
1533
  variant,
956
1534
  collapsible,
957
1535
  side,
958
1536
  children: [
959
- /* @__PURE__ */ jsxs5(SidebarHeader, {
1537
+ /* @__PURE__ */ jsxs8(SidebarHeader, {
960
1538
  children: [
961
- brand === undefined ? /* @__PURE__ */ jsx7(Brand2, {}) : brand,
962
- header === undefined ? /* @__PURE__ */ jsx7(SearchCommand, {
1539
+ brand === undefined ? /* @__PURE__ */ jsx11(Brand2, {}) : brand,
1540
+ header === undefined ? /* @__PURE__ */ jsx11(SearchCommand, {
963
1541
  pages: isNavData(nav) ? nav : []
964
1542
  }) : header
965
1543
  ]
966
1544
  }),
967
- /* @__PURE__ */ jsxs5(SidebarContent, {
1545
+ /* @__PURE__ */ jsxs8(SidebarContent, {
968
1546
  children: [
969
- /* @__PURE__ */ jsx7(SectionNav, {
970
- fallback: isNavData(nav) ? /* @__PURE__ */ jsx7(NavItems2, {
1547
+ /* @__PURE__ */ jsx11(SectionNav, {
1548
+ fallback: isNavData(nav) ? /* @__PURE__ */ jsx11(NavItems2, {
971
1549
  items: nav
972
1550
  }) : nav
973
1551
  }),
974
- collapsible === "none" ? null : /* @__PURE__ */ jsx7(CollapseToggle, {})
1552
+ collapsible === "none" ? null : /* @__PURE__ */ jsx11(CollapseToggle, {})
975
1553
  ]
976
1554
  }),
977
- /* @__PURE__ */ jsxs5(SidebarFooter, {
1555
+ /* @__PURE__ */ jsxs8(SidebarFooter, {
978
1556
  children: [
979
1557
  footer,
980
- userMenu === undefined ? /* @__PURE__ */ jsx7(UserMenu, {}) : userMenu
1558
+ userMenu === undefined ? /* @__PURE__ */ jsx11(UserMenu, {}) : userMenu
981
1559
  ]
982
1560
  }),
983
- collapsible === "none" ? null : /* @__PURE__ */ jsx7(SidebarRail, {
1561
+ collapsible === "none" ? null : /* @__PURE__ */ jsx11(SidebarRail, {
984
1562
  className: variant === "inset" ? "after:hidden" : undefined
985
1563
  })
986
1564
  ]
987
1565
  }),
988
- /* @__PURE__ */ jsxs5(SidebarInset, {
989
- className: "min-h-0 overflow-hidden",
1566
+ /* @__PURE__ */ jsxs8(SidebarInset, {
1567
+ className: cn5("min-h-0 overflow-hidden", phone && "phone-shell"),
990
1568
  children: [
991
- /* @__PURE__ */ jsx7("div", {
1569
+ phone ? /* @__PURE__ */ jsx11(PhoneTopBar, {
1570
+ trailing: /* @__PURE__ */ jsxs8(Fragment6, {
1571
+ children: [
1572
+ /* @__PURE__ */ jsx11(SearchCommand, {
1573
+ pages: places.nav,
1574
+ placement: "toolbar"
1575
+ }),
1576
+ agent === undefined ? /* @__PURE__ */ jsx11("button", {
1577
+ type: "button",
1578
+ onClick: () => setAgentSurfaceMode("dock"),
1579
+ "aria-label": appMessages.agent.open,
1580
+ className: "phone-bar-action",
1581
+ children: /* @__PURE__ */ jsx11(MessageSquareText2, {
1582
+ className: "size-5",
1583
+ strokeWidth: 1.9,
1584
+ "aria-hidden": "true"
1585
+ })
1586
+ }) : null
1587
+ ]
1588
+ })
1589
+ }) : /* @__PURE__ */ jsx11("div", {
992
1590
  className: "flex h-12 shrink-0 items-center border-b border-border px-3 md:hidden",
993
- children: /* @__PURE__ */ jsx7(SidebarTrigger, {
1591
+ children: /* @__PURE__ */ jsx11(SidebarTrigger, {
994
1592
  className: "-ml-1"
995
1593
  })
996
1594
  }),
997
- /* @__PURE__ */ jsxs5("div", {
1595
+ /* @__PURE__ */ jsxs8("div", {
998
1596
  className: "relative flex min-h-0 flex-1",
999
1597
  children: [
1000
- /* @__PURE__ */ jsx7("div", {
1598
+ /* @__PURE__ */ jsx11("div", {
1599
+ "data-app-scroll": true,
1001
1600
  className: "min-h-0 min-w-0 flex-1 overflow-y-auto",
1002
1601
  children
1003
1602
  }),
1004
- agent === undefined ? /* @__PURE__ */ jsx7(AgentDock, {}) : agent
1603
+ agent === undefined ? /* @__PURE__ */ jsx11(AgentDock, {}) : agent
1005
1604
  ]
1006
- })
1605
+ }),
1606
+ phone ? /* @__PURE__ */ jsx11(PhoneTabBar, {
1607
+ items: places.tabs
1608
+ }) : null
1007
1609
  ]
1008
1610
  })
1009
1611
  ]
1010
1612
  });
1011
1613
  }
1614
+ function withPhoneTabs(nav) {
1615
+ const items = nav.flatMap((entry) => ("group" in entry) ? entry.items : [entry]).filter((item) => !isExternal(item.href));
1616
+ const marked = items.filter((item) => item.tab);
1617
+ const tabs = (marked.length ? marked : items.filter((item) => item.icon)).slice(0, 4);
1618
+ const tab = (item) => tabs.includes(item) ? { ...item, tab: true } : item;
1619
+ return {
1620
+ tabs,
1621
+ nav: nav.map((entry) => ("group" in entry) ? { ...entry, items: entry.items.map(tab) } : tab(entry))
1622
+ };
1623
+ }
1012
1624
  function CollapseToggle() {
1013
- const { isMobile } = useSidebar2();
1625
+ const { isMobile } = useSidebar5();
1014
1626
  if (isMobile)
1015
1627
  return null;
1016
- return /* @__PURE__ */ jsx7(SidebarGroup2, {
1628
+ return /* @__PURE__ */ jsx11(SidebarGroup2, {
1017
1629
  className: "mt-auto",
1018
- children: /* @__PURE__ */ jsx7(SidebarGroupContent2, {
1019
- children: /* @__PURE__ */ jsx7(SidebarMenu4, {
1020
- children: /* @__PURE__ */ jsx7(SidebarMenuItem4, {
1021
- children: /* @__PURE__ */ jsx7(SidebarCollapseToggle, {})
1630
+ children: /* @__PURE__ */ jsx11(SidebarGroupContent2, {
1631
+ children: /* @__PURE__ */ jsx11(SidebarMenu4, {
1632
+ children: /* @__PURE__ */ jsx11(SidebarMenuItem4, {
1633
+ children: /* @__PURE__ */ jsx11(SidebarCollapseToggle, {})
1022
1634
  })
1023
1635
  })
1024
1636
  })
@@ -1040,12 +1652,19 @@ export {
1040
1652
  AppShell,
1041
1653
  AppShellProvider,
1042
1654
  ArtifactPanelRoot2 as ArtifactPanelRoot,
1655
+ ArtifactViewer,
1043
1656
  Brand2 as Brand,
1044
1657
  Composer2 as Composer,
1045
1658
  ComposerSettings2 as ComposerSettings,
1046
1659
  ContextChips2 as ContextChips,
1047
1660
  ContextPicker2 as ContextPicker,
1048
1661
  NavItems2 as NavItems,
1662
+ PhoneBarActions,
1663
+ PhoneMoreGroup,
1664
+ PhoneMoreRow,
1665
+ PhoneMoreSheet,
1666
+ PhoneTabBar,
1667
+ PhoneTopBar,
1049
1668
  ProviderLogo2 as ProviderLogo,
1050
1669
  ReasoningEffortSlider2 as ReasoningEffortSlider,
1051
1670
  SandboxRecovery2 as SandboxRecovery,
@@ -1062,11 +1681,13 @@ export {
1062
1681
  setAgentSurfaceMode,
1063
1682
  useAgentContext2 as useAgentContext,
1064
1683
  useAgentConversation2 as useAgentConversation,
1684
+ useBack,
1065
1685
  useCurrentSection2 as useCurrentSection,
1066
1686
  useCurrentUser2 as useCurrentUser,
1067
1687
  useRegisteredAgentContext2 as useRegisteredAgentContext,
1068
1688
  useSections2 as useSections,
1689
+ useSharedGuest2 as useSharedGuest,
1069
1690
  useSignOut2 as useSignOut
1070
1691
  };
1071
1692
 
1072
- //# debugId=71D88E81C9EBAF3C64756E2164756E21
1693
+ //# debugId=4796D65A1308F07F64756E2164756E21